mirror of
https://github.com/hanzoai/better-sqlite3-multiple-ciphers.git
synced 2026-09-24 16:57:19 +00:00
10 lines
292 B
JavaScript
10 lines
292 B
JavaScript
'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();
|
|
};
|