import { MigrationOptions } from '../types' ; import { createTransformer } from '../utils' ; import { Sql } from './othersTypes' ; export { Sql } ; export function sql ( mOptions ) { const t = createTransformer ( mOptions . literal ) ; return ( sqlStr , args ) => { let s = t ( sqlStr , args ) ; if ( s . lastIndexOf ( ';' ) !== s . length - 1 ) { s += ';' ; } return s ; } ; }