MCPcopy Create free account
hub / github.com/dataform-co/dataform / validateQueryString

Function validateQueryString

core/utils.ts:239–249  ·  view source on GitHub ↗
(session: Session, query: string, filename: string)

Source from the content-addressed store, hash-verified

237}
238
239export function validateQueryString(session: Session, query: string, filename: string) {
240 if (query?.trim().slice(-1) === ";") {
241 session.compileError(
242 new Error(
243 "Semi-colons are not allowed at the end of SQL statements."
244 // This can break the statement because of appended adapter specific SQL.
245 ),
246 filename
247 );
248 }
249}
250
251export function validateNoMixedCompilationMode(
252 session: Session,

Callers 5

compileAotMethod · 0.90
compileMethod · 0.90
compileAotMethod · 0.90
compileMethod · 0.90
compileAotMethod · 0.90

Calls 1

compileErrorMethod · 0.80

Tested by

no test coverage detected