db_quote string
Quotes a string value to be placed in a SQL statement.
Source code:
regsub -all {'} "$string" {''} result return $result