Alexandre Bodin c173fa416e wip
2021-09-15 19:53:15 +02:00

44 lines
554 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;
}
// TODO: pass query info to display some more metadata
transformErrors(error) {
if (error instanceof Error) {
throw error;
}
throw new Error(error.message);
}
}
module.exports = {
Dialect,
};