Skip to main content

sqlx使用示例

package main

import (
  "github.com/jmoiron/sqlx"
  _ "github.com/glebarez/sqlite"
)

func main(){
  	db, err := sqlx.Connect("sqlite", "file:./public/data.db?cache=shared")
	if err != nil {
		return
	}
}