(transform?: ((_: string) => string) | undefined)
| 1058 | * @since 4.0.0 |
| 1059 | */ |
| 1060 | export const makeCompilerSqlite = (transform?: ((_: string) => string) | undefined): Compiler => |
| 1061 | makeCompiler({ |
| 1062 | dialect: "sqlite", |
| 1063 | placeholder(_) { |
| 1064 | return "?" |
| 1065 | }, |
| 1066 | onIdentifier: transform ? |
| 1067 | function(value, withoutTransform) { |
| 1068 | return withoutTransform ? escapeSqlite(value) : escapeSqlite(transform(value)) |
| 1069 | } : |
| 1070 | escapeSqlite, |
| 1071 | onRecordUpdate() { |
| 1072 | return ["", []] |
| 1073 | }, |
| 1074 | onCustom() { |
| 1075 | return ["", []] |
| 1076 | } |
| 1077 | }) |
| 1078 | |
| 1079 | /** |
| 1080 | * Creates an identifier escaping function that wraps names in the given |
nothing calls this directly
no test coverage detected