We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fd3377 commit c0fd432Copy full SHA for c0fd432
README.md
@@ -4,6 +4,12 @@ The main reason that this module has been created was generic querying database
4
5
## How to use it
6
7
+Install
8
+```bash
9
+go get github.com/mysiar-org/go-sql-raw
10
+```
11
+
12
+Example use
13
```go
14
rows, err: = Db.Query("SELECT * FROM album")
15
tests/go_sql_raw_test.go
@@ -34,7 +34,7 @@ func Test(t *testing.T) {
34
}
35
36
func setupDb() *sql.DB {
37
- const file string = "test.db"
+ const file string = "test.db?mode=memory"
38
db, err := sql.Open("sqlite3", file)
39
chkError(err)
40
_, err = db.Exec(dropTable())
0 commit comments