CockroachDB (version >= 21.1.0
) driver
for SQLBoiler
Once the binary is in your path sqlboiler will be able to use it if you run it with the driver name crdb
.
# Install sqlboiler crdb driver
go install github.com/optiman/sqlboiler-crdb@latest
# Generate models
sqlboiler crdb
# Or using absolute path to driver binary
sqlboiler /path/to/sqlboiler-crdb
Configuration parameters in sqlboiler.yaml
:
crdb:
user: myuser
pass: mypass
host: localhost
port: 26257
dbname: mydatabase
sslmode: disable