File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change 11# gdbc-sqlite
2- GDBC Sqlite Driver
2+ GDBC Sqlite Driver - It is based on https://github.com/mattn/go-sqlite3 ] ( https://github.com/mattn/go-sqlite3 )
3+
4+ [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/go-gdbc/gdbc-sqlite )] ( https://goreportcard.com/report/github.com/go-gdbc/gdbc-sqlite )
5+ [ ![ codecov] ( https://codecov.io/gh/go-gdbc/gdbc-sqlite/branch/main/graph/badge.svg?token=1O1KF6HIHH )] ( https://codecov.io/gh/go-gdbc/gdbc-sqlite )
6+ [ ![ Build Status] ( https://travis-ci.com/go-gdbc/gdbc-sqlite.svg?branch=main )] ( https://travis-ci.com/go-gdbc/gdbc-sqlite )
7+
8+ # Usage
9+ ``` go
10+ dataSource , err := gdbc.GetDataSource (" gdbc:sqlite:test.db?cache=shared&mode=memory" )
11+ if err != nil {
12+ panic (err)
13+ }
14+
15+ var connection *sql.DB
16+ connection, err = dataSource.GetConnection ()
17+ if err != nil {
18+ panic (err)
19+ }
20+ ```
21+
22+ Sqlite GDBC URL takes the following form:
23+
24+ ```
25+ gdbc:sqlite:database-name?arg1=value1
26+ ```
27+
28+ Checkout [ https://github.com/mattn/go-sqlite3 ] ( https://github.com/mattn/go-sqlite3 ) for arguments details.
You can’t perform that action at this time.
0 commit comments