Skip to content

Commit

Permalink
0
Browse files Browse the repository at this point in the history
  • Loading branch information
logoove committed Jun 12, 2021
0 parents commit a6af900
Show file tree
Hide file tree
Showing 43 changed files with 1,804,347 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# sqlite

一个不使用cgo的database/sql标准sqlite3驱动,原驱动`modernc.org/sqlite`,但是速度不行,在github上边没有,就从gitlab搬迁过来,同时修改了驱动名称为sqlite3,这样不用任何修改,就能在goframe框架中使用.

### 使用方法
`_ github.com/logoove/sqlite`

支持goframe的orm框架,也支持原生'sqlx'
`"github.com/jmoiron/sqlx"`
原生使用例子
~~~
var db *sqlx.DB
db, _ = sqlx.Open("sqlite3","./users.db")
rows:=[]Users{}
db.Select(&rows,"SELECT id,name FROM users ORDER BY id")
~~~
Loading

0 comments on commit a6af900

Please sign in to comment.