diff --git a/sqlx-core/src/sqlite/options/mod.rs b/sqlx-core/src/sqlite/options/mod.rs index 8afdf58c..93b2993d 100644 --- a/sqlx-core/src/sqlite/options/mod.rs +++ b/sqlx-core/src/sqlite/options/mod.rs @@ -70,6 +70,12 @@ impl SqliteConnectOptions { } } + /// Sets the name of the database file. + pub fn filename(mut self, filename: impl AsRef) -> Self { + self.filename = Cow::Owned(filename.as_ref().to_owned()); + self + } + /// Set the enforcement of [foreign key constriants](https://www.sqlite.org/pragma.html#pragma_foreign_keys). /// /// By default, this is enabled.