6 "github.com/mattn/go-sqlite3"
11 sql.Register("sqlite3_with_extensions",
12 &sqlite3.SQLiteDriver{
18 db, err := sql.Open("sqlite3_with_extensions", ":memory:")
24 // Force db to make a new connection in pool
25 // by putting the original in a transaction
32 // New connection works (hopefully!)
33 rows, err := db.Query("select 'hello world' where 'hello world' regexp '^hello.*d$'")
40 rows.Scan(&helloworld)
41 fmt.Println(helloworld)