-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a6af900
Showing
43 changed files
with
1,804,347 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
~~~ |
Oops, something went wrong.