Skip to content

Commit

Permalink
🐛 Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
langyo committed Aug 25, 2024
1 parent 48e8d8f commit 18225d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/database_driver_native/src/sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use anyhow::{Context, Result};

use sea_orm::{ConnectOptions, Database, DatabaseConnection};

pub async fn init_db(url: impl ToString) -> Result<DatabaseConnection> {
pub async fn init_sql(url: impl ToString) -> Result<DatabaseConnection> {
let options = ConnectOptions::new(url.to_string());

let db = Database::connect(options)
Expand Down
2 changes: 1 addition & 1 deletion packages/database_driver_wasi/src/sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl ProxyDatabaseTrait for ProxyDb {
}
}

pub async fn init_db(db_name: impl ToString) -> Result<DatabaseConnection> {
pub async fn init_sql(db_name: impl ToString) -> Result<DatabaseConnection> {
let db = Database::connect_proxy(
DbBackend::Sqlite,
Arc::new(Box::new(ProxyDb {
Expand Down

0 comments on commit 18225d8

Please sign in to comment.