I want to open the SQLite database file in read-only mode (to allow read access, e.g. SELECT) so I tried these DSN URLs:
let path = "sqlite:///data/mydb.sqlite?mode=ro";
// let path = "sqlite:/data/mydb.sqlite?mode=ro";
// let path = "sqlite:/data/mydb.sqlite";
let pool = deadpool_sqlite::Config::new(path).create_pool(deadpool_sqlite::Runtime::Tokio1).unwrap();
But none of this works, is there any wrong in config, or deadpool-sqlite/ rusqlite not support this?
I want to open the SQLite database file in read-only mode (to allow read access, e.g. SELECT) so I tried these DSN URLs:
But none of this works, is there any wrong in config, or
deadpool-sqlite/rusqlitenot support this?