Skip to content

Commit f783ecc

Browse files
committed
Removed override keyword usage, removed prepareQuery implementation from PSSqliteSession.
1 parent 81a1807 commit f783ecc

File tree

3 files changed

+4
-22
lines changed

3 files changed

+4
-22
lines changed

packages/drizzle-driver/src/sqlite/PowerSyncSQLiteBaseSession.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class PowerSyncSQLiteBaseSession<
3939
protected logger: Logger;
4040

4141
constructor(
42-
private db: LockContext,
42+
protected db: LockContext,
4343
protected dialect: SQLiteAsyncDialect,
4444
protected schema: RelationalSchemaConfig<TSchema> | undefined,
4545
protected options: PowerSyncSQLiteSessionOptions = {}
@@ -66,7 +66,7 @@ export class PowerSyncSQLiteBaseSession<
6666
);
6767
}
6868

69-
override transaction<T>(
69+
transaction<T>(
7070
_transaction: (tx: PowerSyncSQLiteTransaction<TFullSchema, TSchema>) => T,
7171
_config: PowerSyncSQLiteTransactionConfig = {}
7272
): T {

packages/drizzle-driver/src/sqlite/PowerSyncSQLiteDatabase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class PowerSyncSQLiteDatabase<
5656
this.db = db;
5757
}
5858

59-
override transaction<T>(
59+
transaction<T>(
6060
transaction: (
6161
tx: SQLiteTransaction<'async', QueryResult, TSchema, ExtractTablesWithRelations<TSchema>>
6262
) => Promise<T>,

packages/drizzle-driver/src/sqlite/PowerSyncSQLiteSession.ts

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,7 @@ export class PowerSyncSQLiteSession<
3232
this.client = db;
3333
}
3434

35-
prepareQuery<T extends PreparedQueryConfigBase & { type: 'async' }>(
36-
query: Query,
37-
fields: SelectedFieldsOrdered | undefined,
38-
executeMethod: SQLiteExecuteMethod,
39-
isResponseInArrayMode: boolean,
40-
customResultMapper?: (rows: unknown[][], mapColumnValue?: (value: unknown) => unknown) => unknown
41-
): PowerSyncSQLitePreparedQuery<T> {
42-
return new PowerSyncSQLitePreparedQuery(
43-
this.client,
44-
query,
45-
this.logger,
46-
fields,
47-
executeMethod,
48-
isResponseInArrayMode,
49-
customResultMapper
50-
);
51-
}
52-
53-
override transaction<T>(
35+
transaction<T>(
5436
transaction: (tx: PowerSyncSQLiteTransaction<TFullSchema, TSchema>) => T,
5537
config: PowerSyncSQLiteTransactionConfig = {}
5638
): T {

0 commit comments

Comments
 (0)