gnorm icon indicating copy to clipboard operation
gnorm copied to clipboard

A database-first code generator for any language

Results 43 gnorm issues
Sort by recently updated
recently updated
newest added

String() method: added wrapper with brackets, so it renders "( ..... AND ..... )" and now it supports nested AND/OR clauses Values() method: fixed wrong fetching of the values (adding...

When generating code for enums, knowing the table can be useful. For example, we could have 2 tables: `contract` and `project`, with each an enum named `type`. In this case,...

This update adds TemplatePaths and TemplateGlobs to `gnorm.toml`. Keeping them separate allows easy parsing using `template.parseFiles` and `template.parseGlob` respectively. This update does not try to handle duplicate templates or templates...

I would like to add generic template based filter functions to `Columns`, `Tables`, `Indexes`, and `ForeignKeys`. I find myself often wanting to filter these slices on one or more properties...

Mysql holds this information in the extra column. For postgres, the simplest route I could find is checking the default column for a call to nextval(). With IsAutoIncrement, cruds can...

resolves #86 In MySQL, the DATA_TYPE column contains only the basic type of the column. The COLUMN_TYPE column provides a more detailed explanation of the column's type, including "unsigned" for...

I'm not 100% sure what the equivalent is for Postgres, but the problem that prompted this issue doesn't exist there. In MySQL, numeric columns can be unsigned. Unfortunately, the DATA_TYPE...

When setting Params in `gnorm.toml`, `gnorm gen` prints a warning. This warning comes from `BurntSushi/toml`'s `MetaData.Undecoded()`: https://github.com/gnormal/gnorm/blob/master/cli/parse.go#L38-L41 The warning should be suppressed because Params is designed to be a bag...

bug

The `strings.Index` func added to the func map in `environ/funcs.go` overwrites the `text/template` `index` func, making some operations impossible.

bug