ParametersEach ? takes the next value of the list: values never become part of the SQL text. A resource runs it again when a control moves.
kind = ?
radius_km >= ?500 km
the call
sql.run(d, "… where kind = ? and radius_km >= ? …", ["moon", 500])
0 found
A batch: all or nonesql.batch runs its statements as one. The second batch's last insert breaks the unique name, so its first insert is taken back too.
–rows before
–rows after
–changed by
Run either batch and compare the counts.
Other databases
sql.load opens a .sqlite file's bytes as a database in memory: nothing it does is kept, and the named one is not touched.
Load a file, in memoryTake a copy of the database above, or pick any .sqlite file from your machine. Then close it.