Skip to content

unable to open database file via dsn path #341

Description

@thoongnv

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-sqliteArea: SQLite / deadpool-sqliteinvalidThe issue is invalid and has been raised in error.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions