@@ -36,22 +36,22 @@ export interface TauriSqlDialectConfig<T extends 'sqlite' | 'mysql' | 'postgres'
36
36
* https://github.com/tauri-apps/plugins-workspace/tree/dev/plugins/sql
37
37
*/
38
38
export class TauriSqlDialect < T extends 'sqlite' | 'mysql' | 'postgres' > {
39
- # config: TauriSqlDialectConfig < T >
39
+ private config : TauriSqlDialectConfig < T >
40
40
/**
41
41
* dialect for Tauri,
42
42
* using [official sql plugin](https://github.com/tauri-apps/plugins-workspace/tree/dev/plugins/sql),
43
43
* support MySQL, PostgreSQL and SQLite
44
44
*/
45
45
constructor ( config : TauriSqlDialectConfig < T > ) {
46
- this . # config = config
46
+ this . config = config
47
47
}
48
48
49
49
createDriver ( ) : Driver {
50
- return new TaruiSqlDriver ( this . # config)
50
+ return new TaruiSqlDriver ( this . config )
51
51
}
52
52
53
53
createQueryCompiler ( ) : QueryCompiler {
54
- switch ( this . # config. type ) {
54
+ switch ( this . config . type ) {
55
55
case 'mysql' :
56
56
return new MysqlQueryCompiler ( )
57
57
case 'postgres' :
@@ -62,7 +62,7 @@ export class TauriSqlDialect<T extends 'sqlite' | 'mysql' | 'postgres'> {
62
62
}
63
63
64
64
createAdapter ( ) : DialectAdapter {
65
- switch ( this . # config. type ) {
65
+ switch ( this . config . type ) {
66
66
case 'mysql' :
67
67
return new MysqlAdapter ( )
68
68
case 'postgres' :
@@ -73,7 +73,7 @@ export class TauriSqlDialect<T extends 'sqlite' | 'mysql' | 'postgres'> {
73
73
}
74
74
75
75
createIntrospector ( db : Kysely < any > ) : DatabaseIntrospector {
76
- switch ( this . # config. type ) {
76
+ switch ( this . config . type ) {
77
77
case 'mysql' :
78
78
return new MysqlIntrospector ( db )
79
79
case 'postgres' :
0 commit comments