Jupp Mueller
bffec36917
Improve performance of mysql generator
...
This change improves performance for generating mysql models
for databases with large number of tables. In my local testing
for a database with about 1000 tables and 140k columns, generation
time was reduced from about 1h to less than one second.
2024-02-17 05:35:56 -08:00
go-jet
6b098b8e41
Replace invalid character from the go identifiers with description string.
2024-02-17 12:46:00 +01:00
go-jet
2eaa75345c
[sqlite] Generated columns additional tests.
2024-02-04 18:45:48 +01:00
go-jet
71fb1c7cd1
Add support for sqlite generated columns.
2024-02-04 18:35:26 +01:00
go-jet
7f48e9fb67
Add support for materialized views.
2024-02-01 15:20:49 +01:00
Yosyp Buchma
dd8d043cb8
moved mysql connection pool config to openConection func
2023-09-20 13:13:50 +03:00
Yosyp Buchma
f472becd89
simplified concurrent querying
2023-09-19 20:56:54 +03:00
Yosyp Buchma
ffabf8b26e
coalesce pk.IsPrimaryKey
2023-09-19 20:56:21 +03:00
Yosyp Buchma
98dfce2ae5
Concurrent GetTableColumnsMetaData for MySQL
2023-09-18 17:48:35 +03:00
Yosyp Buchma
db808f136b
Faster MySQL GetTableColumnsMetaData query
2023-09-18 17:35:11 +03:00
quirell
39f9996b34
Add DefaultAlias option to TableSQLBuilder
2023-08-02 10:03:59 +09:00
go-jet
aace1156ba
[Bug241] Add mysql unicode character comment.
2023-07-23 17:56:07 +02:00
go-jet
bb22b80984
[Bug241] Remove control characters from mysql column comment
2023-07-22 12:01:49 +02: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
5e34bef288
Add more UseSchema tests.
...
Rename newly generated file to avoid potentional conflict with tables named table or views named view.
2023-04-02 13:58:44 +02:00
go-jet
7b36f31cad
Include mysql column comments into generated types
2023-03-31 14:43:47 +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
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