Skip to content

Commit 118a930

Browse files
committed
fix(dialect-tauri)!: rename TaruiSqlDriver to TauriSqlDriver, correct name
1 parent aeddf73 commit 118a930

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/dialect-tauri/src/driver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { DatabaseConnection, QueryResult } from 'kysely'
22
import { CompiledQuery, SelectQueryNode } from 'kysely'
33
import type { TauriSqlDB, TauriSqliteDialectConfig } from './type'
44

5-
export class TaruiSqlDriver {
5+
export class TauriSqlDriver {
66
private config: TauriSqliteDialectConfig
77
private db?: TauriSqlDB
88
private connectionMutex = new ConnectionMutex()

packages/dialect-tauri/src/index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { DatabaseIntrospector, DialectAdapter, Driver, Kysely, QueryCompiler } from 'kysely'
22
import { SqliteAdapter, SqliteIntrospector, SqliteQueryCompiler } from 'kysely'
3-
import { TaruiSqlDriver } from './driver'
3+
import { TauriSqlDriver } from './driver'
44
import type { TauriSqliteDialectConfig } from './type'
55

66
/**
@@ -9,16 +9,14 @@ import type { TauriSqliteDialectConfig } from './type'
99
export class TauriSqliteDialect {
1010
private config: TauriSqliteDialectConfig
1111
/**
12-
* dialect for Tauri,
13-
* using [official sql plugin](https://github.com/tauri-apps/plugins-workspace/tree/dev/plugins/sql),
14-
* support MySQL, PostgreSQL and SQLite
12+
* SQLite dialect for Tauri, using [official sql plugin](https://github.com/tauri-apps/plugins-workspace/tree/dev/plugins/sql)
1513
*/
1614
constructor(config: TauriSqliteDialectConfig) {
1715
this.config = config
1816
}
1917

2018
createDriver(): Driver {
21-
return new TaruiSqlDriver(this.config)
19+
return new TauriSqlDriver(this.config)
2220
}
2321

2422
createQueryCompiler(): QueryCompiler {

0 commit comments

Comments
 (0)