@clickup/pg-mig
Version:
PostgreSQL schema migration tool with microsharding and clustering support
10 lines • 455 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasOtherSqlStatements = hasOtherSqlStatements;
function hasOtherSqlStatements(rest) {
return !rest.match(
// Checks that `rest` ends with an optional ";" (possibly multiple of them),
// but there are no other SQL statements after that.
/^([^;]|E'([^'\\]|\\.|'')*'|'([^']|'')*'|"([^"]|"")*")*(\s*;)*$/);
}
//# sourceMappingURL=hasOtherSqlStatements.js.map