func HasTable(conn *sqlite.Conn, name string) bool { stmt, err := conn.Prepare("SELECT name FROM sqlite_master WHERE name = ?") Must(err) defer stmt.Finalize() Must(stmt.Exec(name)) return stmt.Next() }
func MustExec(conn *sqlite.Conn, stmt string, v ...interface{}) { Must(conn.Exec(stmt, v...)) }