fix: add sequence management methods to MysqlClient, OracleClient, and SqliteClient

This commit is contained in:
Pranav C
2026-01-29 06:22:56 +00:00
parent 3f863cdfbf
commit 8318f023ac
4 changed files with 26 additions and 1 deletions

View File

@@ -1,4 +1,3 @@
/* eslint-disable no-constant-condition */
import fs from 'fs';
import { promisify } from 'util';
import path from 'path';

View File

@@ -2487,6 +2487,12 @@ class MysqlClient extends KnexClient {
return result;
}
async sequenceCreate(_args: any = {}): Promise<any> {}
async sequenceUpdate(_args: any = {}): Promise<any> {}
async sequenceDelete(_args: any = {}): Promise<any> {}
alterTableRemoveColumn(n, _o, existingQuery) {
let query = existingQuery ? ',' : '';
query += this.genQuery(` DROP COLUMN ??`, [n.cn]);

View File

@@ -14,6 +14,16 @@ class OracleClient extends KnexClient {
super(connectionConfig);
}
async schemaCreateWithCredentials(_args): Promise<any> {}
async sequenceList(_args: any = {}): Promise<any> {}
async sequenceCreate(_args: any = {}): Promise<any> {}
async sequenceUpdate(_args: any = {}): Promise<any> {}
async sequenceDelete(_args: any = {}): Promise<any> {}
getKnexDataTypes() {
const result = new Result();

View File

@@ -25,6 +25,16 @@ class SqliteClient extends KnexClient {
this._version = {};
}
async schemaCreateWithCredentials(_args): Promise<any> {}
async sequenceList(_args: any = {}): Promise<any> {}
async sequenceCreate(_args: any = {}): Promise<any> {}
async sequenceUpdate(_args: any = {}): Promise<any> {}
async sequenceDelete(_args: any = {}): Promise<any> {}
getKnexDataTypes() {
const result = new Result();