sqlboiler-sqlite3
This package is a driver for sqlboiler. It requires cgo to build and
therefore is not in the main tree.
Installation
This package depends on the database/sql
sqlite3 driver https://modernc.org/sqlite,
which requires cgo and the sqlite3 .so/.dll installed. Refer to the installation
of the modernc.org/sqlite
to complete this step.
Installation is simple, just use go get
. Once the binary is in
your path sqlboiler
will be able to use it if you run it with the
driver name sqlite3
.
go get -u -t github.com/volatiletech/sqlboiler-sqlite3
sqlboiler sqlite3
It's configuration keys in sqlboiler are simple:
[sqlite3]
dbname = "/path/to/file"
Development
This does use go-bindata to embed templates into the binary.
You can run go-generate
in the driver folder to re-gen the bindata
after modifying templates. Other than that go build
should be able to
be used to build the binary.