-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pg-promise v5 vs v6 #355
Comments
Closing, as version 6 has been officially released. |
Hey @vitaly-t,
Here is an exemple of where I got that issue:
and here is the sql file for sql.project.findById:
I'm aware that this issue is due to the case sensitiveness of pg, but I'm not sure the way I'm creating my tables is wrong: |
@RomeHein You should never create a table with open name like Anyway, the error is database-level, not library-level. |
Ok, it's a bit weird though, cause when I run the sql command directly against the db it works fine, same when using v5, but not with the v6. |
This is a memo for choosing between version 5.x and 6.x of
pg-promise
.Version 5.x is fixed to the true-and-tried version 5.1 of the driver, and is 100% stable.
Version 6.x (currently v6.0.26), is now also stable, even though it remains to be Pre-Release.
It uses the very latest version of the driver, which brings a number of improvements and fixes:
bytea
columnsFor example, instead of a 1-pool approach, you can split the default 10 maximum connections like this:
And even though there were some bugs introduced in v6.x of the driver also, the ones that still remain appear to be minor.
Also, version 6.x is 100% backward compatible with version 5.x.
And if you want to share the connection pool with another module, only version 6.x can do it. Each
db
object has its own connection pool, which it exposes as db.$pool.The text was updated successfully, but these errors were encountered: