Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 672 Bytes

README.md

File metadata and controls

26 lines (23 loc) · 672 Bytes

sqlboiler-crdb

CockroachDB (version >= 21.1.0) driver for SQLBoiler

Installation

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