Opening a database with ?mode=ro
How can I open a database in read only mode?
Previously I would call
db, err := sql.Open("sqlite3", "/pathto.sqlite?mode=ro")
if I do
db, err := sql.Open("sqlite", "/pathto.sqlite?mode=ro")
It creates a new file on the filesystem. What is the correct method to open with options?