This commit is contained in:
nadja
2026-11-01 20:14:25 +01:00
parent 828c38c779
commit c4685c2152
1686 changed files with 570761 additions and 560 deletions

View File

@@ -0,0 +1,9 @@
'use strict';
const { cppdb } = require('../util');
module.exports = function explain(source) {
if (typeof source !== 'string') throw new TypeError('Expected first argument to be a string');
const stmt = this[cppdb].prepare(`EXPLAIN ${source}`, this, false, true);
return stmt.all();
};