Skip to main content
  1. About
  2. Stack Internal
The 2026 Annual Developer Survey is live— take the Survey today!
Filter by
Sorted by
Tagged with
Filter by Employee ID
Advice
0 votes
1 replies
85 views

Spent way too long on this one so I'm hoping someone's hit it before. I've got a desktop app in Rust. Two of my dependencies each drag in their own copy of a C crypto library: rusqlite with bundled-...
  • reputation score 23
Best practices
0 votes
1 replies
69 views

I've defined an enum called Rarity and am exporting rows from a table which stores Rarity as a text field using this code: let rows: Vec<ClassesData> = stmt .query_map([], |row| { Ok(...
  • reputation score 41
Score of 0
2 answers
284 views

My problem is: I have a function do_something, which expects a vector of objects. The objects can be of different types, but they all have to implement the traits A and B. I declared examples of A and ...
  • reputation score 447
Score of 0
1 answer
293 views

I want to create a database using rusqlite, it should have multiple tables so I created a file create.sql that holds the SQL code to create the tables. In my reproduced example, it looks like this: ...
  • reputation score 447
Score of 0
1 answer
590 views

I want to use a custom-built SQLite library with Rusqlite bindings while building a Rust-coded database application. I am interested in both dynamic and static linking options. The Rusqlite README ...
  • reputation score 1895
Score of 0
1 answer
251 views

I am trying to get the contents of different columns in a row. The database fields are TEXT fields which allows for NULL values, however, my code as illustrated down below produces the following error:...
  • reputation score 13
Score of 0
1 answer
182 views

Could anyone help me understand why this code doesn't work? It panics with InvalidParameterName(":floor_number") I'm using rusqlite v0.31.0 with "bundled" feature. pub fn ...
Score of 1
1 answer
79 views

So I have this code which uses rusqlite. And it works fine. pub struct Database { conn: Connection, } impl Database { pub fn get(self: &Self, id: Option<u64>, name: Option<&...
  • reputation score 395
Score of 0
1 answer
204 views

In the following code, with_connection provides a wrapper around opening a connection to an sqlite database, ensuring the connection is closed correctly. This is used in the select_one helper to get ...
  • reputation score 10731
Score of 3
1 answer
1138 views

I have SQLite Encryption Extensions (SEE) and I'm trying to use an encrypted database in a Rust program using rusqlite. I tried getting this to work on my Linux workstation using the following test ...
  • reputation score 51
Score of 1
1 answer
701 views

I'm currently connecting my local Tauri project with an SQLite DB via Rusqlite. The database is based on SQLCipher and I can create it without problems. But how to I use it? I want to unlock it and ...
  • reputation score 125
Score of 0
0 answers
267 views

Building app using rusqlite and many sql (sqlite) statements. How to streamline the select statement? Current code: let mut stmt = conn.prepare("SELECT pid, cat, plant, variety FROM plants")...
  • reputation score 121
Score of 0
1 answer
280 views

I try to send a rusqlite Statement by mutable reference to a function, to let that function execute a query and pack the results into a Peekable Iterator. The compiler complains that the statement ...
  • reputation score 37
Score of 0
1 answer
240 views

I would like write a Rust function that, provided a rusqlite::Statement and a time interval (from, to), returns a rusqlite::MappedRows that I can then use as an interator to read rows from a database. ...
  • reputation score 37
Score of 0
2 answers
1185 views

I want to insert multiple rows into a sqlite database using Rusqlite. The values may contain single quote characters. This simple way of inserting multiple rows works as long as none of the values ...
  • reputation score 1

15 30 50 per page
1
2 3

AltStyle によって変換されたページ (->オリジナル) /