-
-
Notifications
You must be signed in to change notification settings - Fork 394
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
SQLite Error code example in Documentation Seems Wrong #1007
Labels
Comments
Sounds accurate, given that the code uses better-sqlite3/src/objects/database.lzz Line 46 in c37b7ee
better-sqlite3/src/util/constants.lzz Lines 30 to 116 in c37b7ee
I'm sure a PR updating the docs is appreciated 🎉 |
cedricvanrompay
added a commit
to cedricvanrompay/better-sqlite3
that referenced
this issue
May 12, 2023
This was referenced May 12, 2023
JoshuaWise
pushed a commit
that referenced
this issue
Sep 2, 2023
m4heshd
added a commit
to m4heshd/better-sqlite3-multiple-ciphers
that referenced
this issue
Sep 5, 2023
Fixes WiseLibs/better-sqlite3#1007 Co-authored-by: Cédric Van Rompay <cedric.vanrompay@gmail.com>
maplemike
pushed a commit
to GlobalTill/nsqlite3
that referenced
this issue
Jan 25, 2024
maplemike
added a commit
to GlobalTill/nsqlite3
that referenced
this issue
Jan 25, 2024
adriaticaz9
added a commit
to adriaticaz9/better-sqlite3
that referenced
this issue
Aug 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From
better-sqlite3/docs/api.md
Line 607 in c37b7ee
Looking at https://sqlite.org/rescode.html,
SQLITE_CONSTRAINT
is a "Primary Result Code", butSqliteError
objects seem to contain "Extended Result Codes" instead, such asSQLITE_CONSTRAINT_UNIQUE
.The documentation should probably give an extended result code as example, and should probably mention the difference, because users trying to compare the
SqliteError.code
with a primary result code will not get the result they expect.The text was updated successfully, but these errors were encountered: