Commit graph

48 commits

Author SHA1 Message Date
Enzo Fernandes
5bc39dae41 fix: remove random comments on CockroachDB tables generation 2026-02-01 18:16:50 -03:00
go-jet
4ee047a675 Add support for additional array types. 2025-10-16 15:09:07 +02:00
go-jet
45d4ced9b0 Merge branch 'arjen-ag5/master' into pg_arrays
# Conflicts:
#	generator/template/model_template.go
#	generator/template/sql_builder_template.go
#	internal/jet/expression.go
#	postgres/cast.go
#	postgres/columns.go
#	postgres/expressions.go
#	postgres/insert_statement_test.go
#	postgres/literal.go
#	tests/postgres/alltypes_test.go
#	tests/postgres/generator_template_test.go
#	tests/postgres/scan_test.go
#	tests/postgres/select_test.go
2025-10-16 13:44:18 +02:00
Arjen Brouwer
d3ada5361e Add support for postgres arrays 2025-10-16 13:32:18 +02:00
TotallyGamerJet
8975f87830 Remove dbName as argument 2025-01-21 14:06:34 -05:00
TotallyGamerJet
e4ceb421de generator/*: allow passing DB directly
Closes #441
2025-01-17 14:50:59 -05:00
Jamius Siam
cab3cc63bf Replace path package with filepath 2024-11-26 15:40:34 +06:00
Volker Lieber
b5f04ffea8 Improved postgres table comment generation 2024-09-26 14:33:23 +02:00
Volker Lieber
0f21699a1f Implemented postgres enum comment generation 2024-09-25 14:42:27 +02:00
Volker Lieber
ff82eb5df7 Implemented postgres table and enum comment generation 2024-09-24 20:41:27 +02:00
Volker Lieber
929109622e Include postgres comments in output
#391
2024-09-24 13:23:47 +02:00
Mike Nelson
cf08bcd6f7 spacing 2024-08-28 11:46:35 -06:00
Mike Nelson
882b4311b5 Fix Postgres column array detection 2024-08-28 11:09:16 -06:00
Andrew Harding
b7904cde4e Add HasDefault column metadata 2024-08-13 14:52:54 -06:00
go-jet
7f48e9fb67 Add support for materialized views. 2024-02-01 15:20:49 +01:00
go-jet
d7a5adb239 Break utils package into subpackages. 2023-07-21 14:11:31 +02:00
go-jet
06ecd73f67 Improve generator error handling 2023-07-21 13:20:44 +02:00
go-jet
fa69565dbf Add support for postgres GROUPING SET, ROLLUP and CUBE grouping operators
Add support for mysql WITH ROLLUP grouping operator
Add support for GROUPING operator
2023-03-28 13:16:57 +02:00
Cedric L'homme
33e86cd04b Fix constant in CockroachDB 2023-02-01 12:33:25 -05:00
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
Mukundan Kidambi
b22ab17b38
fix: Updating query for types to the target namespace 2022-12-02 01:32:14 -08:00
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
bc776f947b Add support for CockorachDB. 2022-05-05 13:01:42 +02:00
go-jet
4955bfc4b5 Add automatic query logger function with additional execution details. 2022-01-12 19:03:50 +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
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
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
2ada2ff69b Add go mod support. 2020-06-27 18:48:19 +02:00
go-jet
50bda95da2 Simplify error handling in generator. 2019-09-20 18:20:26 +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
0ab25e4464 Update CircleCI to support MySQL 2019-08-08 17:13:20 +02:00
go-jet
23fd973699 Package structure refactor. 2019-08-03 14:10:47 +02:00
go-jet
5dda5e1e11 Generic dialect support. (MySQL and Postgres) 2019-07-28 14:57:02 +02:00
go-jet
043a0dc4c0 MySQL generator support. 2019-07-27 10:40:30 +02:00
go-jet
31ec532b6d Additional generator tests. 2019-07-19 12:39:10 +02:00
go-jet
556578cec9 Additional documentation for sub packages. 2019-07-18 18:42:03 +02:00
go-jet
0a417a14d6 Add northwind db. 2019-07-17 11:03:16 +02:00
go-jet
57added50a Update godoc. 2019-07-16 12:17:27 +02:00
go-jet
518ff49a77 Update README.md. 2019-07-14 14:30:39 +02:00
go-jet
63f2d04651 Rename of types and errors. 2019-07-08 13:00:44 +02:00
go-jet
18bbf1b5fb Types rename. 2019-07-08 10:48:03 +02:00