gizmodel/sql/parsecreate
The SQL parser: CREATE, partitions and COPY.
import * as Parsecreate from "gizmodel/sql/parsecreate";Methods
Parser.create
function Parser.create(self: mut Parser): StatementEffects: fail, read, alloc.
Parser.partitionBound
function Parser.partitionBound(self: mut Parser): stringFOR VALUES IN (...) | FROM (...) TO (...) | WITH (MODULUS m, REMAINDER r), or DEFAULT (Statement.partitionBound).
Effects: fail, alloc.
Parser.source
function Parser.source(self: Parser, from: i64, to: i64): stringThe source between token from and the token at to (exclusive), trimmed.
Effects: fail, alloc.
Parser.copy
function Parser.copy(self: mut Parser): StatementCOPY table [(columns)] FROM STDIN | COPY table | (query) TO STDOUT, with options in
PostgreSQL's list form (FORMAT csv, HEADER, DELIMITER ',', NULL '', QUOTE, ESCAPE) or the older
words (CSV HEADER, DELIMITER AS ','). what: from or to; text: the options as
name=value lines; name: a server file, which is refused.
Effects: fail, read, alloc.