sqlboiler
sqlboiler copied to clipboard
Generate a Go ORM tailored to your database schema.
If you're having a generation problem please answer these questions before submitting your issue. Thanks! ### What version of SQLBoiler are you using (`sqlboiler --version`)? 4.16.1 ### What is your...
### What version of SQLBoiler are you using (`sqlboiler --version`)? - SQLBoiler v4.16.2 ### What is your database and version (eg. Postgresql 10) - MariaDB 10.6.16 ### If this happened...
There's `Count` method that is generated for a table: ```go Count(ctx context.Context, exec boil.ContextExecutor) (int64, error) // performs COUNT(*) ``` It'd be useful to have `CountDistinct` method: ```go CountDistinct(ctx context.Context,...
Generated: ``` AccountID string `boil:"account_id" json:"accountID" toml:"account_id" yaml:"account_id"` ``` But it should be: ``` AccountID string `boil:"account_id" json:"accountId" toml:"account_id" yaml:"account_id"` ``` Config: ``` output = "models/dm" pkgname = "dm" wipe...
Removed params from struct funcs that already contains the values. `initTags` even outright ignored the given parameters.
@stephenafamo: Added the flag as discussed in #1355 Tested with mysql driver --- flag name for sqlboiler config name: `skip-replaced-enum-types` (bool value); default: `true`
### What version of SQLBoiler are you using (`sqlboiler --version`)? `SQLBoiler v4.16.2` ### What is your database and version (eg. Postgresql 10) `sqlite3` ### If this happened at generation time...
I know this was already labeled as a "won't do" in https://github.com/volatiletech/sqlboiler/issues/75#issuecomment-265070783, but I recently stumbled upon a proper use case when dealing with [Timescale](https://github.com/timescale/timescaledb)'s Hypertables: for those, primary keys...
Having a Go project with a file structure like the following is problematic when using absolute or relative paths [as suggested](https://github.com/volatiletech/sqlboiler/tree/master/drivers/sqlboiler-sqlite3#configuration) for the sqlite3 database in the sqlboiler config. ```...