print(node, dialect, options?) MUST write any node of the tree as text of the dialect, quoting an identifier with the dialect's quotes only where identifier of 0007-sql-emit would, a string as the dialect's first string syntax writes it, and a parameter in the style the node has where the dialect reads it, else in the dialect's own; printScript(parsed, dialect, options?) MUST write a script with its statements ended by ;, an unparsed statement by its source text.
Enforced (check): .github: cd commons/lang-sql && bun run verify — suite/print.test.ts: any node is written as text of the dialect: precedence is kept by parentheses where it asks for them, names and strings are quoted as the dialect does, and a script ends each statement with a semicolon; suite/print.test.ts: TABLESAMPLE after a table with no alias is read as what stands beside the table, not as its alias, and is written back
Proved by: lang-sql/suite/print.test.ts
Tests: passed: suite/print.test.ts TABLESAMPLE after a table with no alias is read as what stands beside the table, not as it; passed: suite/print.test.ts any node is written as text of the dialect: precedence is kept by parentheses where it ask
Cited by: Lang Sql, print