diff --git a/packages/database_driver_native/src/sql.rs b/packages/database_driver_native/src/sql.rs index 788ba43..258fa18 100644 --- a/packages/database_driver_native/src/sql.rs +++ b/packages/database_driver_native/src/sql.rs @@ -2,7 +2,7 @@ use anyhow::{Context, Result}; use sea_orm::{ConnectOptions, Database, DatabaseConnection}; -pub async fn init_db(url: impl ToString) -> Result { +pub async fn init_sql(url: impl ToString) -> Result { let options = ConnectOptions::new(url.to_string()); let db = Database::connect(options) diff --git a/packages/database_driver_wasi/src/sql.rs b/packages/database_driver_wasi/src/sql.rs index d7846bb..f801aa5 100644 --- a/packages/database_driver_wasi/src/sql.rs +++ b/packages/database_driver_wasi/src/sql.rs @@ -168,7 +168,7 @@ impl ProxyDatabaseTrait for ProxyDb { } } -pub async fn init_db(db_name: impl ToString) -> Result { +pub async fn init_sql(db_name: impl ToString) -> Result { let db = Database::connect_proxy( DbBackend::Sqlite, Arc::new(Box::new(ProxyDb {