@@ -75,7 +75,7 @@ impl RuntimeConfigResolver {
75
75
let database_kind = config. type_ . as_str ( ) ;
76
76
match database_kind {
77
77
"spin" => {
78
- let config: LocalDatabase = config. config . try_into ( ) ?;
78
+ let config: InProcDatabase = config. config . try_into ( ) ?;
79
79
Ok ( Arc :: new (
80
80
config. connection_creator ( & self . local_database_dir ) ?,
81
81
) )
@@ -122,11 +122,11 @@ const DEFAULT_SQLITE_DB_FILENAME: &str = "sqlite_db.db";
122
122
/// Configuration for a local SQLite database.
123
123
#[ derive( Clone , Debug , Deserialize ) ]
124
124
#[ serde( deny_unknown_fields) ]
125
- pub struct LocalDatabase {
125
+ pub struct InProcDatabase {
126
126
pub path : Option < PathBuf > ,
127
127
}
128
128
129
- impl LocalDatabase {
129
+ impl InProcDatabase {
130
130
/// Get a new connection creator for a local database.
131
131
///
132
132
/// `base_dir` is the base directory path from which `path` is resolved if it is a relative path.
@@ -155,6 +155,8 @@ fn resolve_relative_path(path: &Path, base_dir: &Path) -> PathBuf {
155
155
}
156
156
157
157
/// Configuration for a libSQL database.
158
+ ///
159
+ /// This is used to deserialize the specific runtime config toml for libSQL databases.
158
160
#[ derive( Clone , Debug , Deserialize ) ]
159
161
#[ serde( deny_unknown_fields) ]
160
162
pub struct LibSqlDatabase {
0 commit comments