@uql/core 1.0.11 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +243 -0
- package/LICENSE.md +2 -2
- package/dist/CHANGELOG.md +186 -0
- package/dist/README.md +413 -0
- package/dist/browser/http/bus.d.ts +3 -0
- package/dist/browser/http/bus.js +14 -0
- package/dist/browser/http/http.d.ts +6 -0
- package/dist/browser/http/http.js +45 -0
- package/dist/browser/http/index.d.ts +2 -0
- package/dist/browser/http/index.js +3 -0
- package/dist/browser/index.d.ts +4 -0
- package/dist/browser/index.js +5 -0
- package/dist/browser/options.d.ts +4 -0
- package/dist/browser/options.js +14 -0
- package/dist/browser/querier/genericClientRepository.d.ts +17 -0
- package/dist/browser/querier/genericClientRepository.js +39 -0
- package/dist/browser/querier/httpQuerier.d.ts +20 -0
- package/dist/browser/querier/httpQuerier.js +71 -0
- package/dist/browser/querier/index.d.ts +3 -0
- package/dist/browser/querier/index.js +4 -0
- package/dist/browser/querier/querier.util.d.ts +2 -0
- package/dist/browser/querier/querier.util.js +17 -0
- package/dist/browser/type/clientQuerier.d.ts +16 -0
- package/dist/browser/type/clientQuerier.js +2 -0
- package/dist/browser/type/clientQuerierPool.d.ts +4 -0
- package/dist/browser/type/clientQuerierPool.js +2 -0
- package/dist/browser/type/clientRepository.d.ts +13 -0
- package/dist/browser/type/clientRepository.js +2 -0
- package/dist/browser/type/index.d.ts +4 -0
- package/dist/browser/type/index.js +5 -0
- package/dist/browser/type/request.d.ts +28 -0
- package/dist/browser/type/request.js +2 -0
- package/dist/browser/uql-browser.min.js +2150 -0
- package/dist/browser/uql-browser.min.js.map +1 -0
- package/dist/dialect/abstractDialect.d.ts +16 -0
- package/dist/dialect/abstractDialect.js +28 -0
- package/dist/dialect/abstractSqlDialect.d.ts +47 -0
- package/dist/dialect/abstractSqlDialect.js +650 -0
- package/dist/dialect/index.d.ts +3 -0
- package/dist/dialect/index.js +4 -0
- package/dist/dialect/queryContext.d.ts +48 -0
- package/dist/dialect/queryContext.js +65 -0
- package/{entity → dist/entity}/decorator/definition.d.ts +3 -3
- package/dist/entity/decorator/definition.js +214 -0
- package/{entity → dist/entity}/decorator/entity.d.ts +1 -1
- package/dist/entity/decorator/entity.js +7 -0
- package/{entity → dist/entity}/decorator/field.d.ts +1 -1
- package/dist/entity/decorator/field.js +8 -0
- package/{entity → dist/entity}/decorator/id.d.ts +1 -1
- package/dist/entity/decorator/id.js +8 -0
- package/dist/entity/decorator/index.d.ts +5 -0
- package/dist/entity/decorator/index.js +6 -0
- package/{entity → dist/entity}/decorator/relation.d.ts +2 -2
- package/dist/entity/decorator/relation.js +20 -0
- package/dist/entity/index.d.ts +1 -0
- package/dist/entity/index.js +2 -0
- package/dist/express/index.d.ts +2 -0
- package/dist/express/index.js +3 -0
- package/dist/express/querierMiddleware.d.ts +26 -0
- package/dist/express/querierMiddleware.js +190 -0
- package/dist/express/query.util.d.ts +2 -0
- package/dist/express/query.util.js +19 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +10 -0
- package/dist/maria/index.d.ts +3 -0
- package/dist/maria/index.js +4 -0
- package/dist/maria/mariaDialect.d.ts +8 -0
- package/dist/maria/mariaDialect.js +38 -0
- package/dist/maria/mariaQuerierPool.test.d.ts +5 -0
- package/dist/maria/mariaQuerierPool.test.js +19 -0
- package/dist/maria/mariadbQuerier.d.ts +17 -0
- package/dist/maria/mariadbQuerier.js +39 -0
- package/dist/maria/mariadbQuerier.test.d.ts +4 -0
- package/dist/maria/mariadbQuerier.test.js +19 -0
- package/dist/maria/mariadbQuerierPool.d.ts +10 -0
- package/dist/maria/mariadbQuerierPool.js +17 -0
- package/dist/migrate/cli.d.ts +2 -0
- package/dist/migrate/cli.js +254 -0
- package/dist/migrate/generator/index.d.ts +4 -0
- package/dist/migrate/generator/index.js +5 -0
- package/dist/migrate/generator/mongoSchemaGenerator.d.ts +12 -0
- package/dist/migrate/generator/mongoSchemaGenerator.js +100 -0
- package/dist/migrate/generator/mysqlSchemaGenerator.d.ts +14 -0
- package/dist/migrate/generator/mysqlSchemaGenerator.js +81 -0
- package/dist/migrate/generator/postgresSchemaGenerator.d.ts +18 -0
- package/dist/migrate/generator/postgresSchemaGenerator.js +111 -0
- package/dist/migrate/generator/sqliteSchemaGenerator.d.ts +14 -0
- package/dist/migrate/generator/sqliteSchemaGenerator.js +68 -0
- package/dist/migrate/index.d.ts +12 -0
- package/dist/migrate/index.js +17 -0
- package/dist/migrate/introspection/index.d.ts +4 -0
- package/dist/migrate/introspection/index.js +5 -0
- package/dist/migrate/introspection/mongoIntrospector.d.ts +8 -0
- package/dist/migrate/introspection/mongoIntrospector.js +46 -0
- package/dist/migrate/introspection/mysqlIntrospector.d.ts +25 -0
- package/dist/migrate/introspection/mysqlIntrospector.js +220 -0
- package/dist/migrate/introspection/postgresIntrospector.d.ts +21 -0
- package/dist/migrate/introspection/postgresIntrospector.js +269 -0
- package/dist/migrate/introspection/sqliteIntrospector.d.ts +23 -0
- package/dist/migrate/introspection/sqliteIntrospector.js +212 -0
- package/dist/migrate/migrator-mongo.test.d.ts +1 -0
- package/dist/migrate/migrator-mongo.test.js +54 -0
- package/dist/migrate/migrator.d.ts +133 -0
- package/dist/migrate/migrator.js +600 -0
- package/dist/migrate/migrator.test.d.ts +1 -0
- package/dist/migrate/migrator.test.js +106 -0
- package/dist/migrate/schemaGenerator.d.ts +78 -0
- package/dist/migrate/schemaGenerator.js +363 -0
- package/dist/migrate/storage/databaseStorage.d.ts +24 -0
- package/dist/migrate/storage/databaseStorage.js +77 -0
- package/dist/migrate/storage/index.d.ts +2 -0
- package/dist/migrate/storage/index.js +3 -0
- package/dist/migrate/storage/jsonStorage.d.ts +15 -0
- package/dist/migrate/storage/jsonStorage.js +51 -0
- package/dist/migrate/type.d.ts +1 -0
- package/dist/migrate/type.js +2 -0
- package/dist/mongo/index.d.ts +3 -0
- package/dist/mongo/index.js +4 -0
- package/dist/mongo/mongoDialect.d.ts +34 -0
- package/dist/mongo/mongoDialect.js +163 -0
- package/dist/mongo/mongodbQuerier.d.ts +28 -0
- package/dist/mongo/mongodbQuerier.js +204 -0
- package/dist/mongo/mongodbQuerier.test.d.ts +1 -0
- package/dist/mongo/mongodbQuerier.test.js +36 -0
- package/dist/mongo/mongodbQuerierPool.d.ts +10 -0
- package/dist/mongo/mongodbQuerierPool.js +20 -0
- package/dist/mongo/mongodbQuerierPool.test.d.ts +1 -0
- package/dist/mongo/mongodbQuerierPool.test.js +21 -0
- package/dist/mysql/index.d.ts +3 -0
- package/dist/mysql/index.js +4 -0
- package/dist/mysql/mysql2Querier.d.ts +17 -0
- package/dist/mysql/mysql2Querier.js +43 -0
- package/dist/mysql/mysql2Querier.test.d.ts +4 -0
- package/dist/mysql/mysql2Querier.test.js +16 -0
- package/dist/mysql/mysql2QuerierPool.d.ts +10 -0
- package/dist/mysql/mysql2QuerierPool.js +17 -0
- package/dist/mysql/mysql2QuerierPool.test.d.ts +5 -0
- package/dist/mysql/mysql2QuerierPool.test.js +16 -0
- package/dist/mysql/mysqlDialect.d.ts +5 -0
- package/dist/mysql/mysqlDialect.js +15 -0
- package/dist/namingStrategy/defaultNamingStrategy.d.ts +9 -0
- package/dist/namingStrategy/defaultNamingStrategy.js +15 -0
- package/dist/namingStrategy/index.d.ts +2 -0
- package/dist/namingStrategy/index.js +3 -0
- package/dist/namingStrategy/snakeCaseNamingStrategy.d.ts +8 -0
- package/dist/namingStrategy/snakeCaseNamingStrategy.js +14 -0
- package/{options.d.ts → dist/options.d.ts} +1 -1
- package/dist/options.js +14 -0
- package/dist/package.json +131 -0
- package/dist/postgres/index.d.ts +3 -0
- package/dist/postgres/index.js +4 -0
- package/dist/postgres/pgQuerier.d.ts +17 -0
- package/dist/postgres/pgQuerier.js +39 -0
- package/dist/postgres/pgQuerier.test.d.ts +4 -0
- package/dist/postgres/pgQuerier.test.js +20 -0
- package/dist/postgres/pgQuerierPool.d.ts +10 -0
- package/dist/postgres/pgQuerierPool.js +17 -0
- package/dist/postgres/pgQuerierPool.test.d.ts +5 -0
- package/dist/postgres/pgQuerierPool.test.js +23 -0
- package/dist/postgres/postgresDialect.d.ts +13 -0
- package/dist/postgres/postgresDialect.js +110 -0
- package/dist/querier/abstractQuerier-test.d.ts +45 -0
- package/dist/querier/abstractQuerier-test.js +461 -0
- package/dist/querier/abstractQuerier.d.ts +50 -0
- package/dist/querier/abstractQuerier.js +278 -0
- package/dist/querier/abstractQuerierPool-test.d.ts +9 -0
- package/dist/querier/abstractQuerierPool-test.js +18 -0
- package/dist/querier/abstractQuerierPool.d.ts +14 -0
- package/dist/querier/abstractQuerierPool.js +9 -0
- package/dist/querier/abstractSqlQuerier-test.d.ts +9 -0
- package/dist/querier/abstractSqlQuerier-test.js +16 -0
- package/dist/querier/abstractSqlQuerier.d.ts +28 -0
- package/dist/querier/abstractSqlQuerier.js +133 -0
- package/dist/querier/decorator/index.d.ts +3 -0
- package/dist/querier/decorator/index.js +4 -0
- package/dist/querier/decorator/injectQuerier.d.ts +3 -0
- package/dist/querier/decorator/injectQuerier.js +33 -0
- package/dist/querier/decorator/serialized.d.ts +6 -0
- package/dist/querier/decorator/serialized.js +14 -0
- package/{querier → dist/querier}/decorator/transactional.d.ts +1 -1
- package/dist/querier/decorator/transactional.js +48 -0
- package/dist/querier/index.d.ts +4 -0
- package/dist/querier/index.js +5 -0
- package/dist/repository/genericRepository.d.ts +20 -0
- package/dist/repository/genericRepository.js +51 -0
- package/dist/repository/index.d.ts +1 -0
- package/dist/repository/index.js +2 -0
- package/dist/sqlite/index.d.ts +3 -0
- package/dist/sqlite/index.js +4 -0
- package/dist/sqlite/sqliteDialect.d.ts +10 -0
- package/dist/sqlite/sqliteDialect.js +48 -0
- package/dist/sqlite/sqliteQuerier.d.ts +15 -0
- package/dist/sqlite/sqliteQuerier.js +33 -0
- package/dist/sqlite/sqliteQuerier.test.d.ts +5 -0
- package/dist/sqlite/sqliteQuerier.test.js +19 -0
- package/dist/sqlite/sqliteQuerierPool.d.ts +14 -0
- package/dist/sqlite/sqliteQuerierPool.js +34 -0
- package/dist/sqlite/sqliteQuerierPool.test.d.ts +5 -0
- package/dist/sqlite/sqliteQuerierPool.test.js +10 -0
- package/dist/test/entityMock.d.ts +164 -0
- package/dist/test/entityMock.js +554 -0
- package/dist/test/index.d.ts +3 -0
- package/dist/test/index.js +4 -0
- package/dist/test/it.util.d.ts +4 -0
- package/dist/test/it.util.js +55 -0
- package/dist/test/spec.util.d.ts +14 -0
- package/dist/test/spec.util.js +50 -0
- package/dist/type/entity.d.ts +169 -0
- package/dist/type/entity.js +5 -0
- package/dist/type/index.d.ts +9 -0
- package/dist/type/index.js +10 -0
- package/dist/type/migration.d.ts +213 -0
- package/dist/type/migration.js +2 -0
- package/dist/type/namingStrategy.d.ts +17 -0
- package/dist/type/namingStrategy.js +2 -0
- package/dist/type/querier.d.ts +96 -0
- package/dist/type/querier.js +11 -0
- package/dist/type/querierPool.d.ts +22 -0
- package/dist/type/querierPool.js +2 -0
- package/dist/type/query.d.ts +456 -0
- package/dist/type/query.js +9 -0
- package/{type → dist/type}/repository.d.ts +43 -36
- package/dist/type/repository.js +2 -0
- package/{type → dist/type}/universalQuerier.d.ts +50 -28
- package/dist/type/universalQuerier.js +2 -0
- package/dist/type/utility.d.ts +13 -0
- package/dist/type/utility.js +2 -0
- package/dist/util/dialect.util.d.ts +12 -0
- package/dist/util/dialect.util.js +93 -0
- package/dist/util/index.d.ts +5 -0
- package/dist/util/index.js +6 -0
- package/dist/util/object.util.d.ts +7 -0
- package/dist/util/object.util.js +19 -0
- package/dist/util/raw.d.ts +8 -0
- package/dist/util/raw.js +11 -0
- package/dist/util/sql.util.d.ts +13 -0
- package/dist/util/sql.util.js +78 -0
- package/{util → dist/util}/string.util.d.ts +1 -0
- package/dist/util/string.util.js +34 -0
- package/package.json +83 -15
- package/src/@types/index.d.ts +1 -0
- package/src/@types/jest.d.ts +6 -0
- package/src/browser/http/bus.spec.ts +22 -0
- package/src/browser/http/bus.ts +17 -0
- package/src/browser/http/http.spec.ts +70 -0
- package/src/browser/http/http.ts +55 -0
- package/src/browser/http/index.ts +2 -0
- package/src/browser/index.ts +4 -0
- package/src/browser/options.spec.ts +37 -0
- package/src/browser/options.ts +18 -0
- package/src/browser/querier/genericClientRepository.spec.ts +105 -0
- package/src/browser/querier/genericClientRepository.ts +49 -0
- package/src/browser/querier/httpQuerier.ts +82 -0
- package/src/browser/querier/index.ts +3 -0
- package/src/browser/querier/querier.util.spec.ts +35 -0
- package/src/browser/querier/querier.util.ts +18 -0
- package/src/browser/type/clientQuerier.ts +45 -0
- package/src/browser/type/clientQuerierPool.ts +5 -0
- package/src/browser/type/clientRepository.ts +22 -0
- package/src/browser/type/index.ts +4 -0
- package/src/browser/type/request.ts +25 -0
- package/src/dialect/abstractDialect.ts +28 -0
- package/src/dialect/abstractSqlDialect-spec.ts +1309 -0
- package/src/dialect/abstractSqlDialect.ts +805 -0
- package/src/dialect/index.ts +3 -0
- package/src/dialect/namingStrategy.spec.ts +52 -0
- package/src/dialect/queryContext.ts +69 -0
- package/src/entity/decorator/definition.spec.ts +736 -0
- package/src/entity/decorator/definition.ts +265 -0
- package/src/entity/decorator/entity.ts +8 -0
- package/src/entity/decorator/field.ts +9 -0
- package/src/entity/decorator/id.ts +9 -0
- package/src/entity/decorator/index.ts +5 -0
- package/src/entity/decorator/relation.spec.ts +41 -0
- package/src/entity/decorator/relation.ts +34 -0
- package/src/entity/index.ts +1 -0
- package/src/express/@types/express.d.ts +8 -0
- package/src/express/@types/index.d.ts +1 -0
- package/src/express/index.ts +2 -0
- package/src/express/querierMiddleware.ts +217 -0
- package/src/express/query.util.spec.ts +40 -0
- package/src/express/query.util.ts +21 -0
- package/src/index.ts +9 -0
- package/src/maria/index.ts +3 -0
- package/src/maria/mariaDialect.spec.ts +207 -0
- package/src/maria/mariaDialect.ts +42 -0
- package/src/maria/mariaQuerierPool.test.ts +23 -0
- package/src/maria/mariadbQuerier.test.ts +23 -0
- package/src/maria/mariadbQuerier.ts +45 -0
- package/src/maria/mariadbQuerierPool.ts +21 -0
- package/src/migrate/cli.ts +301 -0
- package/src/migrate/generator/index.ts +4 -0
- package/src/migrate/generator/mongoSchemaGenerator.spec.ts +112 -0
- package/src/migrate/generator/mongoSchemaGenerator.ts +115 -0
- package/src/migrate/generator/mysqlSchemaGenerator.spec.ts +34 -0
- package/src/migrate/generator/mysqlSchemaGenerator.ts +92 -0
- package/src/migrate/generator/postgresSchemaGenerator.spec.ts +44 -0
- package/src/migrate/generator/postgresSchemaGenerator.ts +127 -0
- package/src/migrate/generator/sqliteSchemaGenerator.spec.ts +33 -0
- package/src/migrate/generator/sqliteSchemaGenerator.ts +81 -0
- package/src/migrate/index.ts +41 -0
- package/src/migrate/introspection/index.ts +4 -0
- package/src/migrate/introspection/mongoIntrospector.spec.ts +75 -0
- package/src/migrate/introspection/mongoIntrospector.ts +47 -0
- package/src/migrate/introspection/mysqlIntrospector.spec.ts +113 -0
- package/src/migrate/introspection/mysqlIntrospector.ts +278 -0
- package/src/migrate/introspection/postgresIntrospector.spec.ts +112 -0
- package/src/migrate/introspection/postgresIntrospector.ts +329 -0
- package/src/migrate/introspection/sqliteIntrospector.spec.ts +112 -0
- package/src/migrate/introspection/sqliteIntrospector.ts +296 -0
- package/src/migrate/migrator-mongo.test.ts +54 -0
- package/src/migrate/migrator.spec.ts +255 -0
- package/src/migrate/migrator.test.ts +94 -0
- package/src/migrate/migrator.ts +719 -0
- package/src/migrate/namingStrategy.spec.ts +22 -0
- package/src/migrate/schemaGenerator-advanced.spec.ts +138 -0
- package/src/migrate/schemaGenerator.spec.ts +190 -0
- package/src/migrate/schemaGenerator.ts +478 -0
- package/src/migrate/storage/databaseStorage.spec.ts +69 -0
- package/src/migrate/storage/databaseStorage.ts +100 -0
- package/src/migrate/storage/index.ts +2 -0
- package/src/migrate/storage/jsonStorage.ts +58 -0
- package/src/migrate/type.ts +1 -0
- package/src/mongo/index.ts +3 -0
- package/src/mongo/mongoDialect.spec.ts +251 -0
- package/src/mongo/mongoDialect.ts +238 -0
- package/src/mongo/mongodbQuerier.test.ts +45 -0
- package/src/mongo/mongodbQuerier.ts +256 -0
- package/src/mongo/mongodbQuerierPool.test.ts +25 -0
- package/src/mongo/mongodbQuerierPool.ts +24 -0
- package/src/mysql/index.ts +3 -0
- package/src/mysql/mysql2Querier.test.ts +20 -0
- package/src/mysql/mysql2Querier.ts +49 -0
- package/src/mysql/mysql2QuerierPool.test.ts +20 -0
- package/src/mysql/mysql2QuerierPool.ts +21 -0
- package/src/mysql/mysqlDialect.spec.ts +20 -0
- package/src/mysql/mysqlDialect.ts +16 -0
- package/src/namingStrategy/defaultNamingStrategy.ts +18 -0
- package/src/namingStrategy/index.spec.ts +36 -0
- package/src/namingStrategy/index.ts +2 -0
- package/src/namingStrategy/snakeCaseNamingStrategy.ts +15 -0
- package/src/options.spec.ts +41 -0
- package/src/options.ts +18 -0
- package/src/postgres/index.ts +3 -0
- package/src/postgres/manual-types.d.ts +4 -0
- package/src/postgres/pgQuerier.test.ts +25 -0
- package/src/postgres/pgQuerier.ts +45 -0
- package/src/postgres/pgQuerierPool.test.ts +28 -0
- package/src/postgres/pgQuerierPool.ts +21 -0
- package/src/postgres/postgresDialect.spec.ts +428 -0
- package/src/postgres/postgresDialect.ts +144 -0
- package/src/querier/abstractQuerier-test.ts +584 -0
- package/src/querier/abstractQuerier.ts +353 -0
- package/src/querier/abstractQuerierPool-test.ts +20 -0
- package/src/querier/abstractQuerierPool.ts +18 -0
- package/src/querier/abstractSqlQuerier-spec.ts +979 -0
- package/src/querier/abstractSqlQuerier-test.ts +21 -0
- package/src/querier/abstractSqlQuerier.ts +138 -0
- package/src/querier/decorator/index.ts +3 -0
- package/src/querier/decorator/injectQuerier.spec.ts +74 -0
- package/src/querier/decorator/injectQuerier.ts +45 -0
- package/src/querier/decorator/serialized.spec.ts +98 -0
- package/src/querier/decorator/serialized.ts +13 -0
- package/src/querier/decorator/transactional.spec.ts +240 -0
- package/src/querier/decorator/transactional.ts +56 -0
- package/src/querier/index.ts +4 -0
- package/src/repository/genericRepository.spec.ts +111 -0
- package/src/repository/genericRepository.ts +74 -0
- package/src/repository/index.ts +1 -0
- package/src/sqlite/index.ts +3 -0
- package/src/sqlite/manual-types.d.ts +4 -0
- package/src/sqlite/sqliteDialect.spec.ts +155 -0
- package/src/sqlite/sqliteDialect.ts +76 -0
- package/src/sqlite/sqliteQuerier.spec.ts +36 -0
- package/src/sqlite/sqliteQuerier.test.ts +21 -0
- package/src/sqlite/sqliteQuerier.ts +37 -0
- package/src/sqlite/sqliteQuerierPool.test.ts +12 -0
- package/src/sqlite/sqliteQuerierPool.ts +38 -0
- package/src/test/entityMock.ts +375 -0
- package/src/test/index.ts +3 -0
- package/src/test/it.util.ts +69 -0
- package/src/test/spec.util.ts +57 -0
- package/src/type/entity.ts +218 -0
- package/src/type/index.ts +9 -0
- package/src/type/migration.ts +241 -0
- package/src/type/namingStrategy.ts +17 -0
- package/src/type/querier.ts +143 -0
- package/src/type/querierPool.ts +26 -0
- package/src/type/query.ts +506 -0
- package/src/type/repository.ts +142 -0
- package/src/type/universalQuerier.ts +133 -0
- package/src/type/utility.ts +21 -0
- package/src/util/dialect.util-extra.spec.ts +96 -0
- package/src/util/dialect.util.spec.ts +23 -0
- package/src/util/dialect.util.ts +134 -0
- package/src/util/index.ts +5 -0
- package/src/util/object.util.spec.ts +29 -0
- package/src/util/object.util.ts +27 -0
- package/src/util/raw.ts +11 -0
- package/src/util/sql.util-extra.spec.ts +17 -0
- package/src/util/sql.util.spec.ts +208 -0
- package/src/util/sql.util.ts +104 -0
- package/src/util/string.util.spec.ts +46 -0
- package/src/util/string.util.ts +35 -0
- package/tsconfig.build.json +5 -0
- package/tsconfig.json +8 -0
- package/README.md +0 -179
- package/dialect/abstractSqlDialect.d.ts +0 -30
- package/dialect/abstractSqlDialect.js +0 -365
- package/dialect/index.d.ts +0 -4
- package/dialect/index.js +0 -8
- package/dialect/mysqlDialect.d.ts +0 -6
- package/dialect/mysqlDialect.js +0 -21
- package/dialect/postgresDialect.d.ts +0 -8
- package/dialect/postgresDialect.js +0 -44
- package/dialect/sqliteDialect.d.ts +0 -4
- package/dialect/sqliteDialect.js +0 -11
- package/entity/decorator/definition.js +0 -223
- package/entity/decorator/entity.js +0 -11
- package/entity/decorator/field.js +0 -12
- package/entity/decorator/id.js +0 -12
- package/entity/decorator/index.d.ts +0 -5
- package/entity/decorator/index.js +0 -12
- package/entity/decorator/relation.js +0 -27
- package/entity/index.d.ts +0 -1
- package/entity/index.js +0 -5
- package/index.d.ts +0 -1
- package/index.js +0 -5
- package/options.js +0 -20
- package/querier/abstractQuerier.d.ts +0 -30
- package/querier/abstractQuerier.js +0 -230
- package/querier/abstractSqlQuerier.d.ts +0 -27
- package/querier/abstractSqlQuerier.js +0 -88
- package/querier/decorator/index.d.ts +0 -2
- package/querier/decorator/index.js +0 -6
- package/querier/decorator/injectQuerier.d.ts +0 -3
- package/querier/decorator/injectQuerier.js +0 -39
- package/querier/decorator/transactional.js +0 -52
- package/querier/index.d.ts +0 -3
- package/querier/index.js +0 -7
- package/repository/genericRepository.d.ts +0 -19
- package/repository/genericRepository.js +0 -52
- package/repository/index.d.ts +0 -1
- package/repository/index.js +0 -5
- package/type/entity.d.ts +0 -76
- package/type/entity.js +0 -5
- package/type/index.d.ts +0 -7
- package/type/index.js +0 -11
- package/type/querier.d.ts +0 -53
- package/type/querier.js +0 -3
- package/type/querierPool.d.ts +0 -18
- package/type/querierPool.js +0 -3
- package/type/query.d.ts +0 -394
- package/type/query.js +0 -13
- package/type/repository.js +0 -3
- package/type/universalQuerier.js +0 -3
- package/type/utility.d.ts +0 -12
- package/type/utility.js +0 -3
- package/util/dialect.util.d.ts +0 -17
- package/util/dialect.util.js +0 -114
- package/util/index.d.ts +0 -5
- package/util/index.js +0 -9
- package/util/object.util.d.ts +0 -3
- package/util/object.util.js +0 -22
- package/util/raw.d.ts +0 -2
- package/util/raw.js +0 -9
- package/util/sql.util.d.ts +0 -2
- package/util/sql.util.js +0 -55
- package/util/string.util.js +0 -20
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# [3.0.0](https://github.com/rogerpadilla/uql/compare/@uql/core@2.0.0...@uql/core@3.0.0) (2025-12-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @uql/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# 2.0.0 (2025-12-30)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* Add Bun.js compatibility to SQLite querier pool and refactor naming strategy test entities. ([9f1f1f5](https://github.com/rogerpadilla/uql/commit/9f1f1f52c1b0e70d6f8356ee2bd6eeb530b5b907))
|
|
20
|
+
* Add date handling and upsert tests to SQL dialects and remove bun coverage threshold. ([1edb0ed](https://github.com/rogerpadilla/uql/commit/1edb0ed329dc5a5c3e0b9a153b27260a519ccc4b))
|
|
21
|
+
* replace project logo with new SVG and refactor test expectations to use `expect.anything()`. ([88063e6](https://github.com/rogerpadilla/uql/commit/88063e63d33da41bbd6741f17d850e34daa3fc45))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## 0.4.10 (2020-11-18)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## 0.4.9 (2020-11-18)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## 0.4.8 (2020-11-18)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## 0.4.7 (2020-11-18)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## 0.4.6 (2020-11-16)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## 0.4.5 (2020-11-14)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## 0.4.4 (2020-11-14)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## 0.4.3 (2020-11-14)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## 0.4.2 (2020-11-14)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
## 0.3.6 (2020-10-02)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
## 0.3.5 (2020-10-02)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## 0.3.4 (2020-10-02)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
## 0.3.3 (2020-10-02)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## 0.3.2 (2020-10-01)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### Bug Fixes
|
|
81
|
+
|
|
82
|
+
* return proper auto-generated id when inserting many records ([7080173](https://github.com/rogerpadilla/uql/commit/708017399b395e75e988a081976d08c8cde730fa))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## 0.3.1 (2020-10-01)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
# 0.3.0 (2020-10-01)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Features
|
|
94
|
+
|
|
95
|
+
* **logger:** support for custom logger and logging-level ([#1](https://github.com/rogerpadilla/uql/issues/1)) ([4e02dd3](https://github.com/rogerpadilla/uql/commit/4e02dd33194f3c50fcbeea7f957e07661e61f44e))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
## 0.2.8 (2020-09-29)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Bug Fixes
|
|
103
|
+
|
|
104
|
+
* support negative project of properties ([13a6d03](https://github.com/rogerpadilla/uql/commit/13a6d03138210f232fea3b8d4cb9dfc462f4c07e))
|
|
105
|
+
* support negative project of properties ([0e669b5](https://github.com/rogerpadilla/uql/commit/0e669b569dee1bd2467cfa1636d425a89a2b8fc0))
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
## 0.2.7 (2020-09-27)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Bug Fixes
|
|
113
|
+
|
|
114
|
+
* support negative project of properties ([2c3f285](https://github.com/rogerpadilla/uql/commit/2c3f2856ae71d69aca19dc9fa1dd2ab8184c438b))
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
## 0.2.6 (2020-09-27)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
## 0.2.5 (2020-09-27)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## 0.2.4 (2020-09-27)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
## 0.2.3 (2020-09-26)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
### Bug Fixes
|
|
134
|
+
|
|
135
|
+
* correct versions ([581baaa](https://github.com/rogerpadilla/uql/commit/581baaa383df78dc5f41eb619836169b3d4faf41))
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
## 0.2.2 (2020-09-26)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
## 0.2.1 (2020-09-26)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
# 0.2.0 (2020-09-26)
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
### Features
|
|
151
|
+
|
|
152
|
+
* support for 'count' when querying multiple entities via API ([05d95b7](https://github.com/rogerpadilla/uql/commit/05d95b74746a923edbb9652d489c81c25a241d66))
|
|
153
|
+
* support for 'count' when querying multiple entities via API ([e147096](https://github.com/rogerpadilla/uql/commit/e1470963014331a3499ee2128e1dfd01c24df355))
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
## 0.1.21 (2020-09-21)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### Bug Fixes
|
|
161
|
+
|
|
162
|
+
* allow service.findOneId to use populate ([4faba8a](https://github.com/rogerpadilla/uql/commit/4faba8a7b76bc732a71d9ecc1905c23d9f5788ac))
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
## 0.1.20 (2020-09-21)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
### Bug Fixes
|
|
170
|
+
|
|
171
|
+
* allow service.findOneId to use populate ([c019a48](https://github.com/rogerpadilla/uql/commit/c019a48b524d4cc783bb8f704e8785dbd3276442))
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
## 0.1.19 (2020-09-18)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
## 0.1.18 (2020-09-18)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
## 0.1.17 (2020-09-18)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
## 0.1.16 (2020-09-18)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
## 0.1.15 (2020-09-18)
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
## 0.1.14 (2020-09-18)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
## 0.1.13 (2020-09-18)
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
## 0.1.12 (2020-09-18)
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
## 0.1.11 (2020-09-18)
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
## 0.1.10 (2020-09-18)
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
## 0.1.9 (2020-09-18)
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
## 0.1.8 (2020-09-17)
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
## 0.1.7 (2020-09-17)
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
## 0.1.6 (2020-09-17)
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
## 0.1.5 (2020-09-17)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
## 0.1.4 (2020-09-17)
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
## 0.1.3 (2020-09-17)
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
## 0.1.2 (2020-09-17)
|
package/LICENSE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c) 2015-present
|
|
1
|
+
Copyright (c) 2015-present UQL Contributors
|
|
2
2
|
|
|
3
3
|
MIT License
|
|
4
4
|
|
|
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
19
19
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
20
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
21
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. Please add new changes to the top.
|
|
4
|
+
|
|
5
|
+
date format is [yyyy-mm-dd]
|
|
6
|
+
## [2.0.0] - 2025-12-29
|
|
7
|
+
- **Major Rebranding**: Rebranded the project from **Nukak** to **UQL** (Universal Query Language - this was the original name!).
|
|
8
|
+
- New Slogan: **"One Language. Frontend to Backend."**
|
|
9
|
+
- Project homepage: [uql.app](https://uql.app).
|
|
10
|
+
- **Package Unification**: Unified all database adapters (`mysql`, `postgres`, `maria`, `sqlite`, `mongo`) and `express` middleware into a single core package: `@uql/core`.
|
|
11
|
+
- **Scoped Naming**:
|
|
12
|
+
- `@uql/core`: The main ORM engine and all database adapters.
|
|
13
|
+
- `@uql/migrate`: The database migration system (formerly `nukak-migrate`).
|
|
14
|
+
- **Improved API Surface**:
|
|
15
|
+
- Database-specific logic is now accessible via sub-paths (e.g., `import { ... } from '@uql/core/postgres'`).
|
|
16
|
+
- Unified `NamingStrategy` and `QueryContext` across all unified adapters.
|
|
17
|
+
- **Build & Distribution**:
|
|
18
|
+
- Integrated `bunchee` for high-performance browser bundle generation (`@uql/core/browser`).
|
|
19
|
+
- Minimized core dependency footprint by moving database drivers to optional `peerDependencies`.
|
|
20
|
+
- **Enhanced Type Safety**: Fully updated internal type resolution to support the unified package structure.
|
|
21
|
+
|
|
22
|
+
## [1.8.0] - 2025-12-29
|
|
23
|
+
- **New Feature**: Added support for **Naming Strategies**.
|
|
24
|
+
- Automatically translate TypeScript entity and property names to database-specific identifiers (e.g., camelCase to snake_case).
|
|
25
|
+
- Built-in `DefaultNamingStrategy` and `SnakeCaseNamingStrategy`.
|
|
26
|
+
- Comprehensive support across all SQL dialects and MongoDB.
|
|
27
|
+
- **Refactoring**:
|
|
28
|
+
- Unified naming and metadata resolution logic into a new `AbstractDialect` base class shared by both DML (Dialects) and DDL (Schema Generators).
|
|
29
|
+
- Improved `MongoDialect` to respect naming strategies for collection and field names on both read and write operations.
|
|
30
|
+
|
|
31
|
+
## [1.7.0] - 2025-12-29
|
|
32
|
+
- **New Package**: Introduced `nukak-migrate` for database migrations.
|
|
33
|
+
- Supports version-controlled schema changes via local migration files.
|
|
34
|
+
- Automatic migration generation from entity definitions using schema introspection.
|
|
35
|
+
- Full support for PostgreSQL, MySQL, MariaDB, and SQLite.
|
|
36
|
+
- CLI tool for managing migrations (`up`, `down`, `status`, `generate`, `sync`).
|
|
37
|
+
- Database-backed migration tracking (Database or JSON storage).
|
|
38
|
+
- **Core Improvements**:
|
|
39
|
+
- Expanded `@Field()` decorator with schema metadata: `length`, `precision`, `scale`, `unique`, `index`, `columnType`, `defaultValue`, and `comment`.
|
|
40
|
+
- Added schema generation and introspection capabilities to SQL dialects.
|
|
41
|
+
|
|
42
|
+
## [1.6.0] - 2025-12-28
|
|
43
|
+
- **Architectural Change**: Migrated from "Values as Parameter" to "Context Object" pattern for SQL generation.
|
|
44
|
+
- This pattern centralizes query parameters and SQL fragments into a `QueryContext`, ensuring robust placeholder management and preventing out-of-sync parameter indices.
|
|
45
|
+
- Improved compatibility with PostgreSQL's indexed placeholders ($1, $2, etc.) and complex sub-queries.
|
|
46
|
+
- Standardized dialect interfaces to operate directly on the `QueryContext` for higher performance and cleaner code.
|
|
47
|
+
- Fixed linter issues and unified type safety for `raw()` SQL snippets across all drivers.
|
|
48
|
+
|
|
49
|
+
## [1.5.0] - 2025-12-28
|
|
50
|
+
- **BREAKING CHANGE**: Implemented "Sticky Connections" for performance. `Querier` instances now hold their connection until `release()` is explicitly called.
|
|
51
|
+
- If you manually retrieve a querier via `pool.getQuerier()`, you **MUST** call `await querier.release()` when finished, otherwise connections will leak.
|
|
52
|
+
- `Repositories` and `pool.transaction(...)` callbacks automatically handle this, so high-level usage remains unchanged.
|
|
53
|
+
- Unified serialization logic: `@Serialized()` decorator is now centralized in `AbstractSqlQuerier`, removing redundant overrides in drivers.
|
|
54
|
+
- Fixed MongoDB consistency: `beginTransaction`, `commitTransaction`, and `rollbackTransaction` are now serialized to prevent race conditions.
|
|
55
|
+
- Fix Cross-Dialect SQL JSON bug by moving PostgreSQL-specific casts to the appropriate dialect.
|
|
56
|
+
- Fix transaction race conditions by serializing transaction lifecycle methods and implementing an internal execution pattern.
|
|
57
|
+
|
|
58
|
+
## [1.4.16] - 2025-12-28
|
|
59
|
+
|
|
60
|
+
- Implement a "Serialized Task Queue" at the core of the framework to ensure database connections are thread-safe and race-condition free.
|
|
61
|
+
- Introduce `@Serialized()` decorator to simplify the serialization of database operations across all drivers.
|
|
62
|
+
|
|
63
|
+
## [1.4.14] - 2025-12-28
|
|
64
|
+
|
|
65
|
+
- Robust `upsert` implementation across all SQL dialects (PostgreSQL, MySQL, MariaDB, SQLite).
|
|
66
|
+
|
|
67
|
+
## [1.4.10] - 2025-12-27
|
|
68
|
+
|
|
69
|
+
- Improve types, tests, migrate from EsLint/Prettier to Biome, and update dependencies.
|
|
70
|
+
|
|
71
|
+
## [1.4.6] - 2024-11-06
|
|
72
|
+
|
|
73
|
+
- Update dependencies and improve readme.
|
|
74
|
+
|
|
75
|
+
## [1.4.5] - 2024-09-26
|
|
76
|
+
|
|
77
|
+
- Imperative transactions have to be closed manually.
|
|
78
|
+
|
|
79
|
+
## [1.4.4] - 2024-09-26
|
|
80
|
+
|
|
81
|
+
- Ensure own connection is always released even if exception occurs.
|
|
82
|
+
- Correct issue when empty or null list is passed to `insertMany` operations.
|
|
83
|
+
|
|
84
|
+
## [1.4.3] - 2024-09-25
|
|
85
|
+
|
|
86
|
+
- Ensure the connection is auto-released after `commit` or `rollback` runs.
|
|
87
|
+
- Update dependencies.
|
|
88
|
+
|
|
89
|
+
## [1.4.2] - 2024-09-20
|
|
90
|
+
|
|
91
|
+
- Fix projection of `@OneToMany` field when the 'one' side produces empty result.
|
|
92
|
+
- Update dependencies.
|
|
93
|
+
|
|
94
|
+
## [1.4.1] - 2024-08-21
|
|
95
|
+
|
|
96
|
+
- Add nukak-maku logo.
|
|
97
|
+
- Update dependencies (functionality keeps the same in this release).
|
|
98
|
+
|
|
99
|
+
## [1.4.0] - 2024-08-15
|
|
100
|
+
|
|
101
|
+
- Automatically release the querier unless it is inside a current transaction.
|
|
102
|
+
- Remove unnecessary wrapper for transactions from `AbstractQuerierPool` class.
|
|
103
|
+
|
|
104
|
+
## [1.3.3] - 2024-08-13
|
|
105
|
+
|
|
106
|
+
- Improve typings of first inserted ID.
|
|
107
|
+
|
|
108
|
+
## [1.3.2] - 2024-08-13
|
|
109
|
+
|
|
110
|
+
- Return the inserted IDs in the response of the queriers' `run` function.
|
|
111
|
+
|
|
112
|
+
## [1.3.1] - 2024-08-13
|
|
113
|
+
|
|
114
|
+
- Fix an issue related to the `$where` condition of selected relations missed in the final criteria for `@OneToMany` and `@ManyToMany` relationships.
|
|
115
|
+
|
|
116
|
+
## [1.3.0] - 2024-08-13
|
|
117
|
+
|
|
118
|
+
- Add support for `json` and `jsonb` fields. Automatically parse the JSON values when persisting with `JSON.parse` function.
|
|
119
|
+
- Improve type-safety in general.
|
|
120
|
+
- Move `getPersistables` inside dialect for higher reusability.
|
|
121
|
+
- Add support for `vector` fields.
|
|
122
|
+
|
|
123
|
+
## [1.2.0] - 2024-08-12
|
|
124
|
+
|
|
125
|
+
- Add support for `raw` in values (previously, it was only supported by `$select` and `$where` operators). Allows safe use of any SQL query/clause as the value in an insert or update operation that shouldn't be automatically escaped by the ORM.
|
|
126
|
+
|
|
127
|
+
## [1.1.0] - 2024-08-11
|
|
128
|
+
|
|
129
|
+
- Add support for `upsert` operations.
|
|
130
|
+
- Migrate SQLite package driver from `sqlite3` to `better-sqlite3` for better performance.
|
|
131
|
+
- Make Maria package to use the `RETURNING id` clause to get the inserted IDs.
|
|
132
|
+
|
|
133
|
+
## [1.0.1] - 2024-08-10
|
|
134
|
+
|
|
135
|
+
- Rename `$project` operator to `$select` for consistency with most established frameworks so far.
|
|
136
|
+
- Rename `$filter` operator to `$where` for consistency with most established frameworks so far.
|
|
137
|
+
|
|
138
|
+
## [1.0.0] - 2024-08-10
|
|
139
|
+
|
|
140
|
+
- Allow to set a field as non-eager (i.e. lazy) with `eager: false` (by default fields are `eager: true`).
|
|
141
|
+
- Allow to set a field as non-updatable (i.e. insertable and read-only) with `updatable: false` (by default fields are `updatable: true`).
|
|
142
|
+
|
|
143
|
+
## [0.4.0] - 2023-11-06
|
|
144
|
+
|
|
145
|
+
- Move project inside query parameter [#63](https://github.com/rogerpadilla/nukak/pull/63)
|
|
146
|
+
|
|
147
|
+
## [0.3.3] - 2023-10-25
|
|
148
|
+
|
|
149
|
+
- Update usage example in the README.md.
|
|
150
|
+
|
|
151
|
+
## [0.3.2] - 2023-10-24
|
|
152
|
+
|
|
153
|
+
- Improve usage examples in the README.md, and make the overview section more concise.
|
|
154
|
+
|
|
155
|
+
## [0.3.1] - 2023-10-19
|
|
156
|
+
|
|
157
|
+
1. Remove `$group` and `$having` as they detriment type safety as currently implemented (support may be redesigned later if required).
|
|
158
|
+
2. Improve type safety of `$project` operator.
|
|
159
|
+
3. Improve type safety of `$filter` operator.
|
|
160
|
+
4. Remove projection operators (`$count`, `$min`, `$max`, `$min`, and `$sum`) as they detriment type safety as currently implemented. This can be done via Virtual fields instead as currently supported for better type safety.
|
|
161
|
+
|
|
162
|
+
## [0.3.0] - 2023-10-18
|
|
163
|
+
|
|
164
|
+
- Add support for `transaction` operations using a QuerierPool.
|
|
165
|
+
Automatically wraps the code of the callback inside a transaction, and auto-releases the querier after running.
|
|
166
|
+
- Update dependencies.
|
|
167
|
+
|
|
168
|
+
```ts
|
|
169
|
+
const ids = await querierPool.transaction(async (querier) => {
|
|
170
|
+
const data = await querier.findMany(...);
|
|
171
|
+
const ids = await querier.insertMany(...);
|
|
172
|
+
return ids;
|
|
173
|
+
});
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## [0.2.21] 2023-04-15
|
|
177
|
+
|
|
178
|
+
- fix(nukak-browser): check if ids are returned before use $in to delete them.
|
|
179
|
+
|
|
180
|
+
- Reuse community open-source npm packages to escape literal-values according to each DB vendor.
|
|
181
|
+
|
|
182
|
+
## [0.2.0] 2023-01-02
|
|
183
|
+
|
|
184
|
+
- Move projection to a new parameter to improve type inference of the results.
|
|
185
|
+
|
|
186
|
+
- Support dynamic operations while projecting fields, and move `$project` as an independent parameter in the `find*` functions [#55](https://github.com/rogerpadilla/nukak/pull/55).
|