Browse Source

refactor: put sanitize to helpers

pull/2424/head
Wing-Kam Wong 2 years ago
parent
commit
303d958042
  1. 7
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/helpers/sanitize.ts

7
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/helpers/sanitize.ts

@ -0,0 +1,7 @@
export function sanitize(v) {
return v?.replaceAll('?', '\\\\?');
}
export function unsanitize(v) {
return v?.replaceAll('\\?', '?');
}
Loading…
Cancel
Save