Comments (2)
I'd be fine with adding a message to the assert, but query
should not return a Result
in this case. Passing in a slice with the wrong length is a programmer error and cannot be recovered from - it's a bug that needs to be fixed.
SqliteError
should only have errors from the sqlite bindings, because this library only exists to provide sqlite bindings. :) The few times we've needed to construct one, there's been a reasonable choice to make it look like a SQLite error (e.g., using SQLITE_MISUSE
if we can't convert a path to a C string).
from rusqlite.
Makes sense. Having a descriptive error message in the assert should be good enough so people don't have to dig into the code to see what assert failed. You should probably double check any other asserts you have too.
from rusqlite.
Related Issues (20)
- C-unwind ABI
- Collecting `Map` requires depending on outdated version of `fallible_iterator` HOT 2
- CachedStatement returns invalid columns after altering the table HOT 2
- How to use the latest sqlite? HOT 2
- Pointing my cargo.toml to the latest GIT gives an error HOT 4
- Failure when cross compiling from linux x86_64 to mips64-unknown-linux-muslabi64 HOT 2
- Can not build for `x86_64-linux-android` HOT 3
- Unable to import `rusqlite::transaction::TransactionState` HOT 1
- subsecond modifier like unixepoch('now', 'subsec') does not work HOT 3
- FOREIGN KEY constraint failed HOT 11
- Best way to co-exist with SQLX HOT 1
- Custom window functions and mutability HOT 5
- sqlite3_file_control HOT 2
- Insert with returning clause seems to succeed, but subsequent query fails to find the record -> Data is lost HOT 1
- Support for SQLITE_IOCAP_IMMUTABLE HOT 4
- Potentially confusing error HOT 4
- Error building for wasm32-wasi HOT 5
- release latest changes HOT 3
- Change in float behavior in 0.30.0 HOT 2
- Check sqlite3_reset usages HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rusqlite.