Skip to main content

sqlite_database_url

Function sqlite_database_url 

Source
pub fn sqlite_database_url(path: impl AsRef<Path>) -> String
Expand description

Builds a file-backed SQLite URL from a native filesystem path.

The opaque sqlite: form lets drive letters, backslashes, spaces, ?, and # remain part of the database filename after SQLx percent-decodes it, while the URL still passes generic URL validation performed by SeaORM.