2022-11-21 15:00:31 +01:00

60 lines
687 B
JavaScript

'use strict';
class Dialect {
constructor(db) {
this.db = db;
}
configure() {}
initialize() {}
getSqlType(type) {
return type;
}
canAlterConstraints() {
return true;
}
usesForeignKeys() {
return false;
}
useReturning() {
return false;
}
supportsUnsigned() {
return false;
}
supportsWindowFunctions() {
return true;
}
async startSchemaUpdate() {
// noop
}
async endSchemaUpdate() {
// noop
}
transformErrors(error) {
if (error instanceof Error) {
throw error;
}
throw new Error(error.message);
}
canAddIncrements() {
return true;
}
}
module.exports = {
Dialect,
};