Move sql/driver package to the genji package

This commit is contained in:
Asdine El Hrychy
2019-10-06 21:49:08 +02:00
parent 717b95c3fe
commit 71229c602c
4 changed files with 15 additions and 11 deletions

View File

@@ -28,6 +28,11 @@ func Example() {
log.Fatal(err)
}
_, err = db.Exec("CREATE INDEX IF NOT EXISTS idx_user_Name ON user (Name)")
if err != nil {
log.Fatal(err)
}
_, err = db.Exec("INSERT INTO user (ID, Name, Age) VALUES (?, ?, ?)", 10, "foo", 15)
if err != nil {
log.Fatal(err)