db: modify mysql/pg/sqlite interface for pool working#24780
Conversation
|
Connected to Huly®: V_0.6-23196 |
|
Can't |
|
Probably... once |
|
In Go the builtin DB interfaces use pools by default. It was my mistake not doing this when designing the original DB interfaces in V. We definitely should use DB pools by default. |
|
That also means we won't need a public |
|
|
|
https://github.com/vlang/v/blob/master/vlib%2Fdb%2Fmysql%2Fpool.v This very concise pool should be deleted. |
|
I want firebird to use the connection pool, but I do not see any public DB interface to satisfy. Am I missing something or is this exclusively for internal sql libraries? |
|
Search for |
breaking, for an unified
closefunction needed by thepoolinterface :mysql: modifyreset()!bool=>reset()!,close()=>close()!pg: modifyclose()=>close()!sqlite: modifyclose()!bool=>close()!An example added.