mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-27 13:46:32 +00:00
fix: get_filename should not consume self (#3233)
This commit is contained in:
@@ -212,8 +212,8 @@ impl SqliteConnectOptions {
|
||||
}
|
||||
|
||||
/// Gets the current name of the database file.
|
||||
pub fn get_filename(self) -> Cow<'static, Path> {
|
||||
self.filename
|
||||
pub fn get_filename(&self) -> &Path {
|
||||
&self.filename
|
||||
}
|
||||
|
||||
/// Set the enforcement of [foreign key constraints](https://www.sqlite.org/pragma.html#pragma_foreign_keys).
|
||||
|
||||
Reference in New Issue
Block a user