Skip to content

Commit c0fd432

Browse files
authored
doc_update: update (#4)
1 parent 8fd3377 commit c0fd432

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ The main reason that this module has been created was generic querying database
44

55
## How to use it
66

7+
Install
8+
```bash
9+
go get github.com/mysiar-org/go-sql-raw
10+
```
11+
12+
Example use
713
```go
814
rows, err: = Db.Query("SELECT * FROM album")
915

tests/go_sql_raw_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func Test(t *testing.T) {
3434
}
3535

3636
func setupDb() *sql.DB {
37-
const file string = "test.db"
37+
const file string = "test.db?mode=memory"
3838
db, err := sql.Open("sqlite3", file)
3939
chkError(err)
4040
_, err = db.Exec(dropTable())

0 commit comments

Comments
 (0)