Cedric L'homme
a4191b4953
fix generated columns in mutable columns for PostgreSQL
...
Fix https://github.com/go-jet/jet/issues/209 .
2023-01-30 10:42:06 -05:00
go-jet
4873e43cc5
Merge pull request #194 from realbucksavage/master
...
Added a global `UseSchema` method to table generation
2022-12-06 11:37:18 +01:00
Jay
9185bb8a76
added order by table_name clause to mysql and postgres query sets
2022-12-05 22:45:45 +05:30
Jay
1bf48d640a
Renamed generated schema func to UseSchema.
2022-12-05 17:26:52 +05:30
Jay
04c1a51ba7
Changed SetSchema to UseSchema
2022-12-04 20:33:55 +05:30
Jay
3f9ae1cabb
Removed unnecessary EnsureDirPath call
2022-12-04 20:22:07 +05:30
Jay
7db99b10bc
Made 'SetSchema' to be generated in a dedicated file for views and tables.
2022-12-02 23:02:44 +05:30
Mukundan Kidambi
b22ab17b38
fix: Updating query for types to the target namespace
2022-12-02 01:32:14 -08:00
Jay
199bb2a20a
corrected 'skip table generation' check
2022-12-01 22:28:28 +05:30
Jay
bda94469ea
Corrected an issue where skipping any table skips SetSchema
2022-12-01 17:46:14 +05:30
Jay
882d5562f3
added a check for skipping generation of table SQL builder code
2022-12-01 15:15:35 +05:30
Jay
a792fe6e0a
Renamed generated SetSchema to Set<SchemaName>Schema
2022-12-01 12:48:28 +05:30
Jay
471499ea00
Added a global method to table generation ( #79 )
2022-12-01 11:54:14 +05:30
Stephen Osunrinde
db6ad04024
Removed dsn from generator
2022-10-25 10:53:35 +01:00
S T E P H E N
9bc090b7a3
Potential security flaw
...
I am using go-jet as a go library for an application that uses dynamic database credentials and noticed this potential security risk that exposes the whole database credentials (though it is timed, it is still a risk)
2022-10-24 22:43:10 +01:00
go-jet
4e1ff65023
[MySQL] Add NEW alias for the rows to be inserted.
2022-08-23 12:23:46 +02:00
go-jet
bc776f947b
Add support for CockorachDB.
2022-05-05 13:01:42 +02:00
fourdim
87cc6c9e93
add table prefix and suffix for multi-tenant environment support
...
This closes #125 .
2022-03-16 22:47:34 +08:00
go-jet
4955bfc4b5
Add automatic query logger function with additional execution details.
2022-01-12 19:03:50 +01:00
Karl Blomster
4d404d8853
generator: support MySQL 5.7
...
MySQL 5.7 does not support CTE's. Refactor the table column metadata
query to avoid the CTE.
2021-12-14 18:22:58 +01:00
go-jet
a50d89ff9d
Add test for - Special characters are not working in postgres password(for generator)
...
https://github.com/go-jet/jet/issues/95
2021-10-22 18:08:05 +02:00
go-jet
51cad22809
Add jet generator support for SQLite
2021-10-21 13:21:01 +02:00
go-jet
0d418890ab
Qrm refactor
...
- Allow custom types Scan method to read values returned by the driver rather then the value from intermediate Null types. Scan to intermidiate Null types removed.
- Better error handling
2021-10-15 17:43:10 +02:00
go-jet
8adfe45e38
Reuse generator logic between two generator functions.
2021-10-04 10:46:46 +02:00
go-jet
f30662e0b8
Build fix.
2021-09-24 11:53:03 +02:00
Mukundan Kidambi
a85eafd58c
fix: Fixing up postgres connection strings ( #96 )
2021-09-24 11:49:41 +02:00
vetcher
b31464e491
Review fixes
2021-09-02 11:29:55 +02:00
vetcher
5b7c34e333
Connection via DSN
2021-09-02 11:29:55 +02:00
go-jet
8864667f47
Add the ability to fully customize jet generated files.
2021-07-27 17:39:21 +02:00
go-jet
b375733dfa
Add schema rename support
...
Using SchemaFrom("schemaName") it is possible to set SQL builder table to point to a different schema.
2021-03-21 17:19:54 +01:00
Joonas Haapsaari
b7bcb3527e
Schema rename support
...
- Support for renaming table schemas
* Table support for renaming schema
* Empty schema name is left out (using default schema for the
database connection)
* Generated code support for obtaining a version of the table with
renamed schema, similarly as the `AS` function works
* Unit tests for setting and clearing the schema name
2020-08-18 15:56:04 +03:00
go-jet
2ada2ff69b
Add go mod support.
2020-06-27 18:48:19 +02:00
go-jet
cd3325054b
Remove unused template function.
2020-06-01 17:21:52 +02:00
go-jet
a4b4710637
Generate different sql builder files for MySQL and PostgreSQL.
2020-05-03 21:30:57 +02:00
go-jet
9d112c7fe7
Merge remote-tracking branch 'remotes/upstream/idempotency-gen' into develop
2020-04-13 10:01:06 +02:00
go-jet
14e1863456
[postgres] Add support for ON CONFLICT clause
2020-04-12 18:53:57 +02:00
go-jet
e626384d0b
Remove timestamp from generated files.
2020-03-03 17:16:42 +01:00
go-jet
63c1fd6430
[bug] Fix crash on generating enum sql builder files when enum contains numeric values.
2020-02-15 11:20:51 +01:00
go-jet
3013dc3647
Add support for PostgreSQL interval column
2020-02-09 18:37:48 +01:00
go-jet
799737d602
[Breakable] ColumnList is reverted to be a slice.
...
ColumnList(...) -> ColumnList{...}
IColumnList is removed.
2019-09-26 12:31:03 +02:00
go-jet
50bda95da2
Simplify error handling in generator.
2019-09-20 18:20:26 +02:00
go-jet
f5287628aa
Improve code coverage.
2019-09-20 13:55:07 +02:00
go-jet
b88519bfd4
[Feature] Add support for database views.
...
[Feature] Add support to manually set primary keys for destination structure fields.
2019-09-20 12:53:52 +02:00
go-jet
a657b76bef
The rest of linter errors.
2019-08-17 18:32:01 +02:00
go-jet
bcdab0f111
Disable generating enums from the views for MySQL/MariaDB.
2019-08-15 17:10:54 +02:00
go-jet
91dc633b45
Generator clean up.
2019-08-14 12:50:31 +02:00
go-jet
13c671fa3f
Execution additional tests.
2019-08-13 17:20:35 +02:00
go-jet
9a34dc9fd7
Handle todos.
2019-08-12 12:27:33 +02:00
go-jet
070d82f90f
Generator tests for MySQL.
2019-08-08 17:51:20 +02:00
go-jet
0ab25e4464
Update CircleCI to support MySQL
2019-08-08 17:13:20 +02:00