sqliteQuote returns a manually escaped string replacing single quotes with double-single quotes
(str string)
| 251 | |
| 252 | // sqliteQuote returns a manually escaped string replacing single quotes with double-single quotes |
| 253 | func sqliteQuote(str string) string { |
| 254 | return "'" + strings.ReplaceAll(str, "'", "''") + "'" |
| 255 | } |
| 256 | |
| 257 | // prepInsertStatement prepares and returns the statement inserting records. |
| 258 | func (c *SQLite) prepInsertStatement(tx *sql.Tx) (*sql.Stmt, error) { |
no outgoing calls
no test coverage detected