blob: 5770583c5e4a76cfe0789c24e6aab90817b4601f [file] [edit]
'use strict';
const { ERR_NO_SQLITE } = require('internal/errors').codes;
if (!process.versions.sqlite) {
throw new ERR_NO_SQLITE();
}
const { Database, Statement, Session, constants, backup } =
internalBinding('sqlite');
module.exports = {
Database,
// DEP0210: Documentation-only deprecation, kept for backward
// compatibility with the class's pre-rename name.
DatabaseSync: Database,
Statement,
// DEP0211: Documentation-only deprecation, kept for backward
// compatibility with the class's pre-rename name.
StatementSync: Statement,
Session,
constants,
backup,
};