Handle templating syntax using paramTypes
masterIf your SQL contains templating syntax (e.g., {col1}) that causes parsing errors, you can use the paramTypes option to treat these constructs as prepared-statement parameter-placeholders using a regex.
format('SELECT {col1}, {col2} FROM {tablename};', {
paramTypes: { custom: [{ regex: String.raw`\{\w+\}` }] },
});