extAsSQLStr function

dynamic extAsSQLStr(
  1. dynamic value
)

AsSQLStr(v): SQL-safe string (inside single quotes, ' becomes '')

Implementation

dynamic extAsSQLStr(dynamic value) =>
    "'${varToStr(value).replaceAll("'", "''")}'";