"use strict";const{getBooleanOption,cppdb}=require("../util");module.exports=function(e,t){if(null==t&&(t={}),"string"!=typeof e)throw new TypeError("Expected first argument to be a string");if("object"!=typeof t)throw new TypeError("Expected second argument to be an options object");const o=getBooleanOption(t,"simple"),n=this[cppdb].prepare(`PRAGMA ${e}`,this,!0);return o?n.pluck().get():n.all()};