Skip to content

Releases: tkcrm/pgxgen

v0.0.25

22 Feb 02:55
8568bab
Compare
Choose a tag to compare

v0.0.25

Fixes

  • improve keystone

v0.0.24

17 Feb 11:41
642674a
Compare
Choose a tag to compare

v0.0.24

Fixes

  • refactor get schema method

v0.0.23

16 Feb 14:50
b6a007d
Compare
Choose a tag to compare

v0.0.23

NEW

  • added go constants
  • removed generate_table_names

v0.0.22

14 Feb 09:42
d997784
Compare
Choose a tag to compare

v0.0.22

NEW

  • bump sqlc version to v1.17.0

Fix

  • improve go imports when sqlc_move_models enabled

v0.0.21

13 Feb 07:20
806524e
Compare
Choose a tag to compare

v0.0.21

NEW

  • No need more flag -c for generate crud queries. Just use pgxgen crud. pgxgen use migrations for get database information
  • Sqlc library become a part of internal package of pgxgen
  • Generate table names in file constant_gen.go

v0.0.20

10 Feb 04:07
826ab81
Compare
Choose a tag to compare

v0.0.20

NOTE: Delete existed crud_queries.sql and crud_queries.sql.go files in your project

NEW

  • added CI
  • removed output_crud_sql_file_name parameter
  • added sqlc_move_models parameter. Now you can move you models to another package
  • mobx keystone parameter moved from gp_models.external_models.keystone to gen_keystone_models and now it accept array
  • added crud_params.auto_remove_generated_files for auto removing all files, ended with _gen.sql
  • added crud_params.exclude_table_name_from_methods Instead [ActionName][TableName] will be [ActionName]. Example GetUser -> Get; FindUsers -> Find, etc. You can user name field for manual overwriting method name
  • added crud_params.tables.[table_name].output_dir. Not required. If you do not specify this value, then the sql file will be generated in each folder for all tables
  • added new crud method exists. It return true if record exists in database
  • all get methods now include limit in sql query: LIMIT 1;
  • generated sql queries save to different sql files
  • generated sql files now include _gen suffix
  • mobx keystone moved to new package keystone
  • added new cli param pgxgen keystone
  • add util utils.CreatePath

Updated

  • updated README.md
  • updated dependencies
  • bump version to v0.0.20

Fix

  • Fix tests

v0.0.19

22 Nov 05:10
7f801d6
Compare
Choose a tag to compare

New

CRUD

Removed double quotes because sqlc generates code without them

before

SELECT id, address FROM stores ORDER BY "created_at" ASC;
SELECT * FROM users WHERE "id"=$1;
UPDATE users SET "first_name"=$1 WHERE "id"=$2;
INSERT INTO users ("first_name") VALUES ($1);

after

SELECT id, address FROM stores ORDER BY created_at ASC;
SELECT * FROM users WHERE id=$1;
UPDATE users SET first_name=$1 WHERE id=$2;
INSERT INTO users (first_name) VALUES ($1);

v0.0.18

09 Nov 19:31
6b303f7
Compare
Choose a tag to compare

NEW

  • Bump sqlc version to v1.16.0

v0.0.17

25 Oct 21:03
Compare
Choose a tag to compare

New

  • update readme
  • update keystone template. add new property isFormInited

v0.0.16

24 Oct 00:40
f377b3c
Compare
Choose a tag to compare

Improvements

  • update deps
  • update keystone template

Fixes

  • fix keystone generator