@zyno-io/ts-server-foundation 26.712.36
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/README.md +31 -0
- package/dist/devconsole/assets/index-BlWLbczn.css +1 -0
- package/dist/devconsole/assets/index-lSF6DUY3.js +3 -0
- package/dist/devconsole/index.html +13 -0
- package/dist/src/app/base.d.ts +66 -0
- package/dist/src/app/base.d.ts.map +1 -0
- package/dist/src/app/base.js +577 -0
- package/dist/src/app/base.js.map +1 -0
- package/dist/src/app/commands.d.ts +20 -0
- package/dist/src/app/commands.d.ts.map +1 -0
- package/dist/src/app/commands.js +17 -0
- package/dist/src/app/commands.js.map +1 -0
- package/dist/src/app/config-loader.d.ts +9 -0
- package/dist/src/app/config-loader.d.ts.map +1 -0
- package/dist/src/app/config-loader.js +91 -0
- package/dist/src/app/config-loader.js.map +1 -0
- package/dist/src/app/config.d.ts +96 -0
- package/dist/src/app/config.d.ts.map +1 -0
- package/dist/src/app/config.js +114 -0
- package/dist/src/app/config.js.map +1 -0
- package/dist/src/app/const.d.ts +5 -0
- package/dist/src/app/const.d.ts.map +1 -0
- package/dist/src/app/const.js +17 -0
- package/dist/src/app/const.js.map +1 -0
- package/dist/src/app/current.d.ts +5 -0
- package/dist/src/app/current.d.ts.map +1 -0
- package/dist/src/app/current.js +14 -0
- package/dist/src/app/current.js.map +1 -0
- package/dist/src/app/index.d.ts +8 -0
- package/dist/src/app/index.d.ts.map +1 -0
- package/dist/src/app/index.js +13 -0
- package/dist/src/app/index.js.map +1 -0
- package/dist/src/app/lifecycle.d.ts +9 -0
- package/dist/src/app/lifecycle.d.ts.map +1 -0
- package/dist/src/app/lifecycle.js +21 -0
- package/dist/src/app/lifecycle.js.map +1 -0
- package/dist/src/app/migrations-entrypoint.d.ts +3 -0
- package/dist/src/app/migrations-entrypoint.d.ts.map +1 -0
- package/dist/src/app/migrations-entrypoint.js +35 -0
- package/dist/src/app/migrations-entrypoint.js.map +1 -0
- package/dist/src/app/resolver.d.ts +6 -0
- package/dist/src/app/resolver.d.ts.map +1 -0
- package/dist/src/app/resolver.js +15 -0
- package/dist/src/app/resolver.js.map +1 -0
- package/dist/src/auth/index.d.ts +3 -0
- package/dist/src/auth/index.d.ts.map +1 -0
- package/dist/src/auth/index.js +15 -0
- package/dist/src/auth/index.js.map +1 -0
- package/dist/src/auth/jwt.d.ts +61 -0
- package/dist/src/auth/jwt.d.ts.map +1 -0
- package/dist/src/auth/jwt.js +379 -0
- package/dist/src/auth/jwt.js.map +1 -0
- package/dist/src/auth/provider.d.ts +21 -0
- package/dist/src/auth/provider.d.ts.map +1 -0
- package/dist/src/auth/provider.js +148 -0
- package/dist/src/auth/provider.js.map +1 -0
- package/dist/src/cli/common.d.ts +13 -0
- package/dist/src/cli/common.d.ts.map +1 -0
- package/dist/src/cli/common.js +99 -0
- package/dist/src/cli/common.js.map +1 -0
- package/dist/src/cli/tsf-create-app.d.ts +3 -0
- package/dist/src/cli/tsf-create-app.d.ts.map +1 -0
- package/dist/src/cli/tsf-create-app.js +89 -0
- package/dist/src/cli/tsf-create-app.js.map +1 -0
- package/dist/src/cli/tsf-dev.d.ts +3 -0
- package/dist/src/cli/tsf-dev.d.ts.map +1 -0
- package/dist/src/cli/tsf-dev.js +753 -0
- package/dist/src/cli/tsf-dev.js.map +1 -0
- package/dist/src/cli/tsf-gen-proto.d.ts +3 -0
- package/dist/src/cli/tsf-gen-proto.d.ts.map +1 -0
- package/dist/src/cli/tsf-gen-proto.js +134 -0
- package/dist/src/cli/tsf-gen-proto.js.map +1 -0
- package/dist/src/cli/tsf-install.d.ts +8 -0
- package/dist/src/cli/tsf-install.d.ts.map +1 -0
- package/dist/src/cli/tsf-install.js +424 -0
- package/dist/src/cli/tsf-install.js.map +1 -0
- package/dist/src/cli/tsf-migrate.d.ts +3 -0
- package/dist/src/cli/tsf-migrate.d.ts.map +1 -0
- package/dist/src/cli/tsf-migrate.js +271 -0
- package/dist/src/cli/tsf-migrate.js.map +1 -0
- package/dist/src/cli/tsf-test.d.ts +4 -0
- package/dist/src/cli/tsf-test.d.ts.map +1 -0
- package/dist/src/cli/tsf-test.js +350 -0
- package/dist/src/cli/tsf-test.js.map +1 -0
- package/dist/src/cli/tsf-update.d.ts +3 -0
- package/dist/src/cli/tsf-update.d.ts.map +1 -0
- package/dist/src/cli/tsf-update.js +12 -0
- package/dist/src/cli/tsf-update.js.map +1 -0
- package/dist/src/cli/tsf.d.ts +3 -0
- package/dist/src/cli/tsf.d.ts.map +1 -0
- package/dist/src/cli/tsf.js +29 -0
- package/dist/src/cli/tsf.js.map +1 -0
- package/dist/src/database/database.d.ts +54 -0
- package/dist/src/database/database.d.ts.map +1 -0
- package/dist/src/database/database.js +695 -0
- package/dist/src/database/database.js.map +1 -0
- package/dist/src/database/driver.d.ts +28 -0
- package/dist/src/database/driver.d.ts.map +1 -0
- package/dist/src/database/driver.js +5 -0
- package/dist/src/database/driver.js.map +1 -0
- package/dist/src/database/drivers/index.d.ts +4 -0
- package/dist/src/database/drivers/index.d.ts.map +1 -0
- package/dist/src/database/drivers/index.js +9 -0
- package/dist/src/database/drivers/index.js.map +1 -0
- package/dist/src/database/drivers/mysql-session-rpc.d.ts +40 -0
- package/dist/src/database/drivers/mysql-session-rpc.d.ts.map +1 -0
- package/dist/src/database/drivers/mysql-session-rpc.js +180 -0
- package/dist/src/database/drivers/mysql-session-rpc.js.map +1 -0
- package/dist/src/database/drivers/mysql-session.d.ts +25 -0
- package/dist/src/database/drivers/mysql-session.d.ts.map +1 -0
- package/dist/src/database/drivers/mysql-session.js +124 -0
- package/dist/src/database/drivers/mysql-session.js.map +1 -0
- package/dist/src/database/drivers/mysql.d.ts +20 -0
- package/dist/src/database/drivers/mysql.d.ts.map +1 -0
- package/dist/src/database/drivers/mysql.js +84 -0
- package/dist/src/database/drivers/mysql.js.map +1 -0
- package/dist/src/database/drivers/postgres.d.ts +22 -0
- package/dist/src/database/drivers/postgres.d.ts.map +1 -0
- package/dist/src/database/drivers/postgres.js +80 -0
- package/dist/src/database/drivers/postgres.js.map +1 -0
- package/dist/src/database/entity.d.ts +112 -0
- package/dist/src/database/entity.d.ts.map +1 -0
- package/dist/src/database/entity.js +333 -0
- package/dist/src/database/entity.js.map +1 -0
- package/dist/src/database/errors.d.ts +7 -0
- package/dist/src/database/errors.d.ts.map +1 -0
- package/dist/src/database/errors.js +34 -0
- package/dist/src/database/errors.js.map +1 -0
- package/dist/src/database/factory.d.ts +48 -0
- package/dist/src/database/factory.d.ts.map +1 -0
- package/dist/src/database/factory.js +139 -0
- package/dist/src/database/factory.js.map +1 -0
- package/dist/src/database/identifiers.d.ts +8 -0
- package/dist/src/database/identifiers.d.ts.map +1 -0
- package/dist/src/database/identifiers.js +46 -0
- package/dist/src/database/identifiers.js.map +1 -0
- package/dist/src/database/index.d.ts +14 -0
- package/dist/src/database/index.d.ts.map +1 -0
- package/dist/src/database/index.js +33 -0
- package/dist/src/database/index.js.map +1 -0
- package/dist/src/database/metadata.d.ts +27 -0
- package/dist/src/database/metadata.d.ts.map +1 -0
- package/dist/src/database/metadata.js +70 -0
- package/dist/src/database/metadata.js.map +1 -0
- package/dist/src/database/migration/create/comparator.d.ts +3 -0
- package/dist/src/database/migration/create/comparator.d.ts.map +1 -0
- package/dist/src/database/migration/create/comparator.js +302 -0
- package/dist/src/database/migration/create/comparator.js.map +1 -0
- package/dist/src/database/migration/create/db-reader.d.ts +9 -0
- package/dist/src/database/migration/create/db-reader.d.ts.map +1 -0
- package/dist/src/database/migration/create/db-reader.js +478 -0
- package/dist/src/database/migration/create/db-reader.js.map +1 -0
- package/dist/src/database/migration/create/ddl-generator.d.ts +4 -0
- package/dist/src/database/migration/create/ddl-generator.d.ts.map +1 -0
- package/dist/src/database/migration/create/ddl-generator.js +431 -0
- package/dist/src/database/migration/create/ddl-generator.js.map +1 -0
- package/dist/src/database/migration/create/entity-reader.d.ts +7 -0
- package/dist/src/database/migration/create/entity-reader.d.ts.map +1 -0
- package/dist/src/database/migration/create/entity-reader.js +169 -0
- package/dist/src/database/migration/create/entity-reader.js.map +1 -0
- package/dist/src/database/migration/create/file-generator.d.ts +7 -0
- package/dist/src/database/migration/create/file-generator.d.ts.map +1 -0
- package/dist/src/database/migration/create/file-generator.js +60 -0
- package/dist/src/database/migration/create/file-generator.js.map +1 -0
- package/dist/src/database/migration/create/index.d.ts +19 -0
- package/dist/src/database/migration/create/index.d.ts.map +1 -0
- package/dist/src/database/migration/create/index.js +102 -0
- package/dist/src/database/migration/create/index.js.map +1 -0
- package/dist/src/database/migration/create/schema-model.d.ts +99 -0
- package/dist/src/database/migration/create/schema-model.d.ts.map +1 -0
- package/dist/src/database/migration/create/schema-model.js +24 -0
- package/dist/src/database/migration/create/schema-model.js.map +1 -0
- package/dist/src/database/migration/create/type-mapper.d.ts +13 -0
- package/dist/src/database/migration/create/type-mapper.d.ts.map +1 -0
- package/dist/src/database/migration/create/type-mapper.js +293 -0
- package/dist/src/database/migration/create/type-mapper.js.map +1 -0
- package/dist/src/database/migration/index.d.ts +33 -0
- package/dist/src/database/migration/index.d.ts.map +1 -0
- package/dist/src/database/migration/index.js +165 -0
- package/dist/src/database/migration/index.js.map +1 -0
- package/dist/src/database/migration/maintenance.d.ts +26 -0
- package/dist/src/database/migration/maintenance.d.ts.map +1 -0
- package/dist/src/database/migration/maintenance.js +65 -0
- package/dist/src/database/migration/maintenance.js.map +1 -0
- package/dist/src/database/query.d.ts +79 -0
- package/dist/src/database/query.d.ts.map +1 -0
- package/dist/src/database/query.js +435 -0
- package/dist/src/database/query.js.map +1 -0
- package/dist/src/database/schema.d.ts +147 -0
- package/dist/src/database/schema.d.ts.map +1 -0
- package/dist/src/database/schema.js +709 -0
- package/dist/src/database/schema.js.map +1 -0
- package/dist/src/database/session.d.ts +63 -0
- package/dist/src/database/session.d.ts.map +1 -0
- package/dist/src/database/session.js +226 -0
- package/dist/src/database/session.js.map +1 -0
- package/dist/src/database/sql.d.ts +37 -0
- package/dist/src/database/sql.d.ts.map +1 -0
- package/dist/src/database/sql.js +143 -0
- package/dist/src/database/sql.js.map +1 -0
- package/dist/src/database/values.d.ts +6 -0
- package/dist/src/database/values.d.ts.map +1 -0
- package/dist/src/database/values.js +237 -0
- package/dist/src/database/values.js.map +1 -0
- package/dist/src/devconsole/controller.d.ts +11 -0
- package/dist/src/devconsole/controller.d.ts.map +1 -0
- package/dist/src/devconsole/controller.js +78 -0
- package/dist/src/devconsole/controller.js.map +1 -0
- package/dist/src/devconsole/generated/devconsole.d.ts +306 -0
- package/dist/src/devconsole/generated/devconsole.d.ts.map +1 -0
- package/dist/src/devconsole/generated/devconsole.js +4029 -0
- package/dist/src/devconsole/generated/devconsole.js.map +1 -0
- package/dist/src/devconsole/index.d.ts +10 -0
- package/dist/src/devconsole/index.d.ts.map +1 -0
- package/dist/src/devconsole/index.js +26 -0
- package/dist/src/devconsole/index.js.map +1 -0
- package/dist/src/devconsole/observers.d.ts +4 -0
- package/dist/src/devconsole/observers.d.ts.map +1 -0
- package/dist/src/devconsole/observers.js +170 -0
- package/dist/src/devconsole/observers.js.map +1 -0
- package/dist/src/devconsole/runtime.d.ts +16 -0
- package/dist/src/devconsole/runtime.d.ts.map +1 -0
- package/dist/src/devconsole/runtime.js +48 -0
- package/dist/src/devconsole/runtime.js.map +1 -0
- package/dist/src/devconsole/security.d.ts +8 -0
- package/dist/src/devconsole/security.d.ts.map +1 -0
- package/dist/src/devconsole/security.js +33 -0
- package/dist/src/devconsole/security.js.map +1 -0
- package/dist/src/devconsole/server.d.ts +25 -0
- package/dist/src/devconsole/server.d.ts.map +1 -0
- package/dist/src/devconsole/server.js +452 -0
- package/dist/src/devconsole/server.js.map +1 -0
- package/dist/src/devconsole/store.d.ts +111 -0
- package/dist/src/devconsole/store.d.ts.map +1 -0
- package/dist/src/devconsole/store.js +177 -0
- package/dist/src/devconsole/store.js.map +1 -0
- package/dist/src/di/container.d.ts +38 -0
- package/dist/src/di/container.d.ts.map +1 -0
- package/dist/src/di/container.js +252 -0
- package/dist/src/di/container.js.map +1 -0
- package/dist/src/di/errors.d.ts +18 -0
- package/dist/src/di/errors.d.ts.map +1 -0
- package/dist/src/di/errors.js +71 -0
- package/dist/src/di/errors.js.map +1 -0
- package/dist/src/di/index.d.ts +5 -0
- package/dist/src/di/index.d.ts.map +1 -0
- package/dist/src/di/index.js +10 -0
- package/dist/src/di/index.js.map +1 -0
- package/dist/src/di/module.d.ts +29 -0
- package/dist/src/di/module.d.ts.map +1 -0
- package/dist/src/di/module.js +42 -0
- package/dist/src/di/module.js.map +1 -0
- package/dist/src/di/provider.d.ts +34 -0
- package/dist/src/di/provider.d.ts.map +1 -0
- package/dist/src/di/provider.js +24 -0
- package/dist/src/di/provider.js.map +1 -0
- package/dist/src/env.d.ts +122 -0
- package/dist/src/env.d.ts.map +1 -0
- package/dist/src/env.js +61 -0
- package/dist/src/env.js.map +1 -0
- package/dist/src/events/event-bus.d.ts +26 -0
- package/dist/src/events/event-bus.d.ts.map +1 -0
- package/dist/src/events/event-bus.js +67 -0
- package/dist/src/events/event-bus.js.map +1 -0
- package/dist/src/events/index.d.ts +2 -0
- package/dist/src/events/index.d.ts.map +1 -0
- package/dist/src/events/index.js +7 -0
- package/dist/src/events/index.js.map +1 -0
- package/dist/src/health/healthcheck.controller.d.ts +9 -0
- package/dist/src/health/healthcheck.controller.d.ts.map +1 -0
- package/dist/src/health/healthcheck.controller.js +33 -0
- package/dist/src/health/healthcheck.controller.js.map +1 -0
- package/dist/src/health/healthcheck.service.d.ts +13 -0
- package/dist/src/health/healthcheck.service.d.ts.map +1 -0
- package/dist/src/health/healthcheck.service.js +37 -0
- package/dist/src/health/healthcheck.service.js.map +1 -0
- package/dist/src/health/index.d.ts +3 -0
- package/dist/src/health/index.d.ts.map +1 -0
- package/dist/src/health/index.js +8 -0
- package/dist/src/health/index.js.map +1 -0
- package/dist/src/helpers/async/context.d.ts +10 -0
- package/dist/src/helpers/async/context.d.ts.map +1 -0
- package/dist/src/helpers/async/context.js +52 -0
- package/dist/src/helpers/async/context.js.map +1 -0
- package/dist/src/helpers/async/process.d.ts +16 -0
- package/dist/src/helpers/async/process.d.ts.map +1 -0
- package/dist/src/helpers/async/process.js +62 -0
- package/dist/src/helpers/async/process.js.map +1 -0
- package/dist/src/helpers/async/promise.d.ts +11 -0
- package/dist/src/helpers/async/promise.d.ts.map +1 -0
- package/dist/src/helpers/async/promise.js +32 -0
- package/dist/src/helpers/async/promise.js.map +1 -0
- package/dist/src/helpers/data/array.d.ts +5 -0
- package/dist/src/helpers/data/array.d.ts.map +1 -0
- package/dist/src/helpers/data/array.js +27 -0
- package/dist/src/helpers/data/array.js.map +1 -0
- package/dist/src/helpers/data/objects.d.ts +13 -0
- package/dist/src/helpers/data/objects.d.ts.map +1 -0
- package/dist/src/helpers/data/objects.js +55 -0
- package/dist/src/helpers/data/objects.js.map +1 -0
- package/dist/src/helpers/data/serialization.d.ts +5 -0
- package/dist/src/helpers/data/serialization.d.ts.map +1 -0
- package/dist/src/helpers/data/serialization.js +25 -0
- package/dist/src/helpers/data/serialization.js.map +1 -0
- package/dist/src/helpers/data/transformer.d.ts +13 -0
- package/dist/src/helpers/data/transformer.d.ts.map +1 -0
- package/dist/src/helpers/data/transformer.js +50 -0
- package/dist/src/helpers/data/transformer.js.map +1 -0
- package/dist/src/helpers/index.d.ts +19 -0
- package/dist/src/helpers/index.d.ts.map +1 -0
- package/dist/src/helpers/index.js +30 -0
- package/dist/src/helpers/index.js.map +1 -0
- package/dist/src/helpers/io/package.d.ts +10 -0
- package/dist/src/helpers/io/package.d.ts.map +1 -0
- package/dist/src/helpers/io/package.js +35 -0
- package/dist/src/helpers/io/package.js.map +1 -0
- package/dist/src/helpers/io/stream.d.ts +18 -0
- package/dist/src/helpers/io/stream.d.ts.map +1 -0
- package/dist/src/helpers/io/stream.js +131 -0
- package/dist/src/helpers/io/stream.js.map +1 -0
- package/dist/src/helpers/redis/broadcast.d.ts +15 -0
- package/dist/src/helpers/redis/broadcast.d.ts.map +1 -0
- package/dist/src/helpers/redis/broadcast.js +93 -0
- package/dist/src/helpers/redis/broadcast.js.map +1 -0
- package/dist/src/helpers/redis/cache.d.ts +20 -0
- package/dist/src/helpers/redis/cache.d.ts.map +1 -0
- package/dist/src/helpers/redis/cache.js +57 -0
- package/dist/src/helpers/redis/cache.js.map +1 -0
- package/dist/src/helpers/redis/mutex.d.ts +45 -0
- package/dist/src/helpers/redis/mutex.d.ts.map +1 -0
- package/dist/src/helpers/redis/mutex.js +446 -0
- package/dist/src/helpers/redis/mutex.js.map +1 -0
- package/dist/src/helpers/redis/redis.d.ts +12 -0
- package/dist/src/helpers/redis/redis.d.ts.map +1 -0
- package/dist/src/helpers/redis/redis.js +62 -0
- package/dist/src/helpers/redis/redis.js.map +1 -0
- package/dist/src/helpers/security/crypto.d.ts +31 -0
- package/dist/src/helpers/security/crypto.d.ts.map +1 -0
- package/dist/src/helpers/security/crypto.js +108 -0
- package/dist/src/helpers/security/crypto.js.map +1 -0
- package/dist/src/helpers/security/validation.d.ts +3 -0
- package/dist/src/helpers/security/validation.d.ts.map +1 -0
- package/dist/src/helpers/security/validation.js +14 -0
- package/dist/src/helpers/security/validation.js.map +1 -0
- package/dist/src/helpers/utils/date.d.ts +4 -0
- package/dist/src/helpers/utils/date.d.ts.map +1 -0
- package/dist/src/helpers/utils/date.js +16 -0
- package/dist/src/helpers/utils/date.js.map +1 -0
- package/dist/src/helpers/utils/error.d.ts +20 -0
- package/dist/src/helpers/utils/error.d.ts.map +1 -0
- package/dist/src/helpers/utils/error.js +164 -0
- package/dist/src/helpers/utils/error.js.map +1 -0
- package/dist/src/helpers/utils/uuid.d.ts +5 -0
- package/dist/src/helpers/utils/uuid.d.ts.map +1 -0
- package/dist/src/helpers/utils/uuid.js +13 -0
- package/dist/src/helpers/utils/uuid.js.map +1 -0
- package/dist/src/http/auth.d.ts +20 -0
- package/dist/src/http/auth.d.ts.map +1 -0
- package/dist/src/http/auth.js +68 -0
- package/dist/src/http/auth.js.map +1 -0
- package/dist/src/http/base.d.ts +57 -0
- package/dist/src/http/base.d.ts.map +1 -0
- package/dist/src/http/base.js +331 -0
- package/dist/src/http/base.js.map +1 -0
- package/dist/src/http/context.d.ts +6 -0
- package/dist/src/http/context.d.ts.map +1 -0
- package/dist/src/http/context.js +26 -0
- package/dist/src/http/context.js.map +1 -0
- package/dist/src/http/cors.d.ts +25 -0
- package/dist/src/http/cors.d.ts.map +1 -0
- package/dist/src/http/cors.js +124 -0
- package/dist/src/http/cors.js.map +1 -0
- package/dist/src/http/decorators.d.ts +64 -0
- package/dist/src/http/decorators.d.ts.map +1 -0
- package/dist/src/http/decorators.js +102 -0
- package/dist/src/http/decorators.js.map +1 -0
- package/dist/src/http/errors.d.ts +50 -0
- package/dist/src/http/errors.d.ts.map +1 -0
- package/dist/src/http/errors.js +158 -0
- package/dist/src/http/errors.js.map +1 -0
- package/dist/src/http/index.d.ts +31 -0
- package/dist/src/http/index.d.ts.map +1 -0
- package/dist/src/http/index.js +33 -0
- package/dist/src/http/index.js.map +1 -0
- package/dist/src/http/middleware.d.ts +12 -0
- package/dist/src/http/middleware.d.ts.map +1 -0
- package/dist/src/http/middleware.js +31 -0
- package/dist/src/http/middleware.js.map +1 -0
- package/dist/src/http/parameter-resolvers.d.ts +3 -0
- package/dist/src/http/parameter-resolvers.d.ts.map +1 -0
- package/dist/src/http/parameter-resolvers.js +8 -0
- package/dist/src/http/parameter-resolvers.js.map +1 -0
- package/dist/src/http/request-logging.d.ts +34 -0
- package/dist/src/http/request-logging.d.ts.map +1 -0
- package/dist/src/http/request-logging.js +130 -0
- package/dist/src/http/request-logging.js.map +1 -0
- package/dist/src/http/request.d.ts +69 -0
- package/dist/src/http/request.d.ts.map +1 -0
- package/dist/src/http/request.js +366 -0
- package/dist/src/http/request.js.map +1 -0
- package/dist/src/http/response.d.ts +98 -0
- package/dist/src/http/response.d.ts.map +1 -0
- package/dist/src/http/response.js +292 -0
- package/dist/src/http/response.js.map +1 -0
- package/dist/src/http/router.d.ts +100 -0
- package/dist/src/http/router.d.ts.map +1 -0
- package/dist/src/http/router.js +1085 -0
- package/dist/src/http/router.js.map +1 -0
- package/dist/src/http/startup-logging.d.ts +8 -0
- package/dist/src/http/startup-logging.d.ts.map +1 -0
- package/dist/src/http/startup-logging.js +55 -0
- package/dist/src/http/startup-logging.js.map +1 -0
- package/dist/src/http/static-files.d.ts +15 -0
- package/dist/src/http/static-files.d.ts.map +1 -0
- package/dist/src/http/static-files.js +110 -0
- package/dist/src/http/static-files.js.map +1 -0
- package/dist/src/http/store.d.ts +8 -0
- package/dist/src/http/store.d.ts.map +1 -0
- package/dist/src/http/store.js +47 -0
- package/dist/src/http/store.js.map +1 -0
- package/dist/src/http/types.d.ts +23 -0
- package/dist/src/http/types.d.ts.map +1 -0
- package/dist/src/http/types.js +3 -0
- package/dist/src/http/types.js.map +1 -0
- package/dist/src/http/upgrade.d.ts +22 -0
- package/dist/src/http/upgrade.d.ts.map +1 -0
- package/dist/src/http/upgrade.js +164 -0
- package/dist/src/http/upgrade.js.map +1 -0
- package/dist/src/http/uploads.d.ts +36 -0
- package/dist/src/http/uploads.d.ts.map +1 -0
- package/dist/src/http/uploads.js +287 -0
- package/dist/src/http/uploads.js.map +1 -0
- package/dist/src/http/workflow.d.ts +34 -0
- package/dist/src/http/workflow.d.ts.map +1 -0
- package/dist/src/http/workflow.js +40 -0
- package/dist/src/http/workflow.js.map +1 -0
- package/dist/src/index.d.ts +21 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +88 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/openapi/controller.d.ts +9 -0
- package/dist/src/openapi/controller.d.ts.map +1 -0
- package/dist/src/openapi/controller.js +45 -0
- package/dist/src/openapi/controller.js.map +1 -0
- package/dist/src/openapi/index.d.ts +5 -0
- package/dist/src/openapi/index.d.ts.map +1 -0
- package/dist/src/openapi/index.js +21 -0
- package/dist/src/openapi/index.js.map +1 -0
- package/dist/src/openapi/schema.d.ts +26 -0
- package/dist/src/openapi/schema.d.ts.map +1 -0
- package/dist/src/openapi/schema.js +1128 -0
- package/dist/src/openapi/schema.js.map +1 -0
- package/dist/src/openapi/serializer.d.ts +16 -0
- package/dist/src/openapi/serializer.d.ts.map +1 -0
- package/dist/src/openapi/serializer.js +506 -0
- package/dist/src/openapi/serializer.js.map +1 -0
- package/dist/src/openapi/types.d.ts +84 -0
- package/dist/src/openapi/types.d.ts.map +1 -0
- package/dist/src/openapi/types.js +5 -0
- package/dist/src/openapi/types.js.map +1 -0
- package/dist/src/reflection/annotations.d.ts +15 -0
- package/dist/src/reflection/annotations.d.ts.map +1 -0
- package/dist/src/reflection/annotations.js +228 -0
- package/dist/src/reflection/annotations.js.map +1 -0
- package/dist/src/reflection/conversion.d.ts +15 -0
- package/dist/src/reflection/conversion.d.ts.map +1 -0
- package/dist/src/reflection/conversion.js +360 -0
- package/dist/src/reflection/conversion.js.map +1 -0
- package/dist/src/reflection/deserializer.d.ts +15 -0
- package/dist/src/reflection/deserializer.d.ts.map +1 -0
- package/dist/src/reflection/deserializer.js +42 -0
- package/dist/src/reflection/deserializer.js.map +1 -0
- package/dist/src/reflection/entity.d.ts +9 -0
- package/dist/src/reflection/entity.d.ts.map +1 -0
- package/dist/src/reflection/entity.js +74 -0
- package/dist/src/reflection/entity.js.map +1 -0
- package/dist/src/reflection/errors.d.ts +8 -0
- package/dist/src/reflection/errors.d.ts.map +1 -0
- package/dist/src/reflection/errors.js +21 -0
- package/dist/src/reflection/errors.js.map +1 -0
- package/dist/src/reflection/index.d.ts +8 -0
- package/dist/src/reflection/index.d.ts.map +1 -0
- package/dist/src/reflection/index.js +13 -0
- package/dist/src/reflection/index.js.map +1 -0
- package/dist/src/reflection/metadata-store.d.ts +14 -0
- package/dist/src/reflection/metadata-store.d.ts.map +1 -0
- package/dist/src/reflection/metadata-store.js +18 -0
- package/dist/src/reflection/metadata-store.js.map +1 -0
- package/dist/src/reflection/model.d.ts +271 -0
- package/dist/src/reflection/model.d.ts.map +1 -0
- package/dist/src/reflection/model.js +36 -0
- package/dist/src/reflection/model.js.map +1 -0
- package/dist/src/reflection/reflection-class.d.ts +60 -0
- package/dist/src/reflection/reflection-class.d.ts.map +1 -0
- package/dist/src/reflection/reflection-class.js +263 -0
- package/dist/src/reflection/reflection-class.js.map +1 -0
- package/dist/src/reflection/type-utils.d.ts +34 -0
- package/dist/src/reflection/type-utils.d.ts.map +1 -0
- package/dist/src/reflection/type-utils.js +485 -0
- package/dist/src/reflection/type-utils.js.map +1 -0
- package/dist/src/reflection.d.ts +2 -0
- package/dist/src/reflection.d.ts.map +1 -0
- package/dist/src/reflection.js +5 -0
- package/dist/src/reflection.js.map +1 -0
- package/dist/src/services/cli.d.ts +9 -0
- package/dist/src/services/cli.d.ts.map +1 -0
- package/dist/src/services/cli.js +47 -0
- package/dist/src/services/cli.js.map +1 -0
- package/dist/src/services/index.d.ts +8 -0
- package/dist/src/services/index.d.ts.map +1 -0
- package/dist/src/services/index.js +13 -0
- package/dist/src/services/index.js.map +1 -0
- package/dist/src/services/leader.d.ts +31 -0
- package/dist/src/services/leader.d.ts.map +1 -0
- package/dist/src/services/leader.js +176 -0
- package/dist/src/services/leader.js.map +1 -0
- package/dist/src/services/logger.d.ts +60 -0
- package/dist/src/services/logger.d.ts.map +1 -0
- package/dist/src/services/logger.js +349 -0
- package/dist/src/services/logger.js.map +1 -0
- package/dist/src/services/mail/index.d.ts +57 -0
- package/dist/src/services/mail/index.d.ts.map +1 -0
- package/dist/src/services/mail/index.js +89 -0
- package/dist/src/services/mail/index.js.map +1 -0
- package/dist/src/services/mail/postmark.d.ts +11 -0
- package/dist/src/services/mail/postmark.d.ts.map +1 -0
- package/dist/src/services/mail/postmark.js +41 -0
- package/dist/src/services/mail/postmark.js.map +1 -0
- package/dist/src/services/mail/smtp.d.ts +11 -0
- package/dist/src/services/mail/smtp.d.ts.map +1 -0
- package/dist/src/services/mail/smtp.js +50 -0
- package/dist/src/services/mail/smtp.js.map +1 -0
- package/dist/src/services/mesh-client/index.d.ts +9 -0
- package/dist/src/services/mesh-client/index.d.ts.map +1 -0
- package/dist/src/services/mesh-client/index.js +18 -0
- package/dist/src/services/mesh-client/index.js.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-redis-registry.d.ts +23 -0
- package/dist/src/services/mesh-client/mesh-client-redis-registry.d.ts.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-redis-registry.js +360 -0
- package/dist/src/services/mesh-client/mesh-client-redis-registry.js.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-registry.d.ts +16 -0
- package/dist/src/services/mesh-client/mesh-client-registry.d.ts.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-registry.js +44 -0
- package/dist/src/services/mesh-client/mesh-client-registry.js.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-service.d.ts +88 -0
- package/dist/src/services/mesh-client/mesh-client-service.d.ts.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-service.js +222 -0
- package/dist/src/services/mesh-client/mesh-client-service.js.map +1 -0
- package/dist/src/services/mesh-client/mesh-srpc-server.d.ts +95 -0
- package/dist/src/services/mesh-client/mesh-srpc-server.d.ts.map +1 -0
- package/dist/src/services/mesh-client/mesh-srpc-server.js +475 -0
- package/dist/src/services/mesh-client/mesh-srpc-server.js.map +1 -0
- package/dist/src/services/mesh-client/types.d.ts +36 -0
- package/dist/src/services/mesh-client/types.d.ts.map +1 -0
- package/dist/src/services/mesh-client/types.js +38 -0
- package/dist/src/services/mesh-client/types.js.map +1 -0
- package/dist/src/services/mesh.d.ts +73 -0
- package/dist/src/services/mesh.d.ts.map +1 -0
- package/dist/src/services/mesh.js +511 -0
- package/dist/src/services/mesh.js.map +1 -0
- package/dist/src/services/worker/entity.d.ts +26 -0
- package/dist/src/services/worker/entity.d.ts.map +1 -0
- package/dist/src/services/worker/entity.js +30 -0
- package/dist/src/services/worker/entity.js.map +1 -0
- package/dist/src/services/worker/index.d.ts +25 -0
- package/dist/src/services/worker/index.d.ts.map +1 -0
- package/dist/src/services/worker/index.js +52 -0
- package/dist/src/services/worker/index.js.map +1 -0
- package/dist/src/services/worker/observer.d.ts +13 -0
- package/dist/src/services/worker/observer.d.ts.map +1 -0
- package/dist/src/services/worker/observer.js +22 -0
- package/dist/src/services/worker/observer.js.map +1 -0
- package/dist/src/services/worker/queue.d.ts +38 -0
- package/dist/src/services/worker/queue.d.ts.map +1 -0
- package/dist/src/services/worker/queue.js +227 -0
- package/dist/src/services/worker/queue.js.map +1 -0
- package/dist/src/services/worker/recorder.d.ts +17 -0
- package/dist/src/services/worker/recorder.d.ts.map +1 -0
- package/dist/src/services/worker/recorder.js +88 -0
- package/dist/src/services/worker/recorder.js.map +1 -0
- package/dist/src/services/worker/runner.d.ts +37 -0
- package/dist/src/services/worker/runner.d.ts.map +1 -0
- package/dist/src/services/worker/runner.js +319 -0
- package/dist/src/services/worker/runner.js.map +1 -0
- package/dist/src/services/worker/types.d.ts +63 -0
- package/dist/src/services/worker/types.d.ts.map +1 -0
- package/dist/src/services/worker/types.js +38 -0
- package/dist/src/services/worker/types.js.map +1 -0
- package/dist/src/srpc/SrpcByteStream.d.ts +60 -0
- package/dist/src/srpc/SrpcByteStream.d.ts.map +1 -0
- package/dist/src/srpc/SrpcByteStream.js +237 -0
- package/dist/src/srpc/SrpcByteStream.js.map +1 -0
- package/dist/src/srpc/SrpcClient.d.ts +67 -0
- package/dist/src/srpc/SrpcClient.d.ts.map +1 -0
- package/dist/src/srpc/SrpcClient.js +406 -0
- package/dist/src/srpc/SrpcClient.js.map +1 -0
- package/dist/src/srpc/SrpcServer.d.ts +56 -0
- package/dist/src/srpc/SrpcServer.d.ts.map +1 -0
- package/dist/src/srpc/SrpcServer.js +519 -0
- package/dist/src/srpc/SrpcServer.js.map +1 -0
- package/dist/src/srpc/index.d.ts +9 -0
- package/dist/src/srpc/index.d.ts.map +1 -0
- package/dist/src/srpc/index.js +17 -0
- package/dist/src/srpc/index.js.map +1 -0
- package/dist/src/srpc/observer.d.ts +21 -0
- package/dist/src/srpc/observer.d.ts.map +1 -0
- package/dist/src/srpc/observer.js +22 -0
- package/dist/src/srpc/observer.js.map +1 -0
- package/dist/src/srpc/types.d.ts +92 -0
- package/dist/src/srpc/types.d.ts.map +1 -0
- package/dist/src/srpc/types.js +28 -0
- package/dist/src/srpc/types.js.map +1 -0
- package/dist/src/telemetry/index.d.ts +3 -0
- package/dist/src/telemetry/index.d.ts.map +1 -0
- package/dist/src/telemetry/index.js +22 -0
- package/dist/src/telemetry/index.js.map +1 -0
- package/dist/src/telemetry/otel/helpers.d.ts +45 -0
- package/dist/src/telemetry/otel/helpers.d.ts.map +1 -0
- package/dist/src/telemetry/otel/helpers.js +142 -0
- package/dist/src/telemetry/otel/helpers.js.map +1 -0
- package/dist/src/telemetry/otel/index.d.ts +22 -0
- package/dist/src/telemetry/otel/index.d.ts.map +1 -0
- package/dist/src/telemetry/otel/index.js +268 -0
- package/dist/src/telemetry/otel/index.js.map +1 -0
- package/dist/src/telemetry/otel/metrics.controller.d.ts +5 -0
- package/dist/src/telemetry/otel/metrics.controller.d.ts.map +1 -0
- package/dist/src/telemetry/otel/metrics.controller.js +82 -0
- package/dist/src/telemetry/otel/metrics.controller.js.map +1 -0
- package/dist/src/telemetry/otel/metrics.d.ts +2 -0
- package/dist/src/telemetry/otel/metrics.d.ts.map +1 -0
- package/dist/src/telemetry/otel/metrics.js +16 -0
- package/dist/src/telemetry/otel/metrics.js.map +1 -0
- package/dist/src/telemetry/sentry.d.ts +9 -0
- package/dist/src/telemetry/sentry.d.ts.map +1 -0
- package/dist/src/telemetry/sentry.js +63 -0
- package/dist/src/telemetry/sentry.js.map +1 -0
- package/dist/src/testing/database-readiness.d.ts +11 -0
- package/dist/src/testing/database-readiness.d.ts.map +1 -0
- package/dist/src/testing/database-readiness.js +102 -0
- package/dist/src/testing/database-readiness.js.map +1 -0
- package/dist/src/testing/expect.d.ts +21 -0
- package/dist/src/testing/expect.d.ts.map +1 -0
- package/dist/src/testing/expect.js +110 -0
- package/dist/src/testing/expect.js.map +1 -0
- package/dist/src/testing/fixtures.d.ts +18 -0
- package/dist/src/testing/fixtures.d.ts.map +1 -0
- package/dist/src/testing/fixtures.js +46 -0
- package/dist/src/testing/fixtures.js.map +1 -0
- package/dist/src/testing/index.d.ts +143 -0
- package/dist/src/testing/index.d.ts.map +1 -0
- package/dist/src/testing/index.js +993 -0
- package/dist/src/testing/index.js.map +1 -0
- package/dist/src/testing/mysql-session-manager-process.d.ts +3 -0
- package/dist/src/testing/mysql-session-manager-process.d.ts.map +1 -0
- package/dist/src/testing/mysql-session-manager-process.js +77 -0
- package/dist/src/testing/mysql-session-manager-process.js.map +1 -0
- package/dist/src/testing/mysql-session-manager.d.ts +59 -0
- package/dist/src/testing/mysql-session-manager.d.ts.map +1 -0
- package/dist/src/testing/mysql-session-manager.js +910 -0
- package/dist/src/testing/mysql-session-manager.js.map +1 -0
- package/dist/src/testing/sql.d.ts +47 -0
- package/dist/src/testing/sql.d.ts.map +1 -0
- package/dist/src/testing/sql.js +313 -0
- package/dist/src/testing/sql.js.map +1 -0
- package/dist/src/type-compiler/go/ast_expression.go +161 -0
- package/dist/src/type-compiler/go/ast_metadata.go +355 -0
- package/dist/src/type-compiler/go/collect.go +806 -0
- package/dist/src/type-compiler/go/emission_plan.go +205 -0
- package/dist/src/type-compiler/go/emit_ast.go +406 -0
- package/dist/src/type-compiler/go/emit_ast_test.go +248 -0
- package/dist/src/type-compiler/go/go.mod +10 -0
- package/dist/src/type-compiler/go/plugin.go +308 -0
- package/dist/src/type-compiler/go/plugin_test.go +752 -0
- package/dist/src/type-compiler/go/precompute.go +86 -0
- package/dist/src/type-compiler/go/receive_type.go +837 -0
- package/dist/src/type-compiler/go/resolve.go +265 -0
- package/dist/src/type-compiler/go/source_scan.go +51 -0
- package/dist/src/type-compiler/go/text_parse.go +671 -0
- package/dist/src/type-compiler/go/type_expr.go +1227 -0
- package/dist/src/type-compiler/go/typia_expr.go +2119 -0
- package/dist/src/type-compiler/index.cjs +6 -0
- package/dist/src/types/index.d.ts +7 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/index.js +14 -0
- package/dist/src/types/index.js.map +1 -0
- package/dist/src/types/phone.d.ts +6 -0
- package/dist/src/types/phone.d.ts.map +1 -0
- package/dist/src/types/phone.js +64 -0
- package/dist/src/types/phone.js.map +1 -0
- package/dist/src/types/primitives.d.ts +33 -0
- package/dist/src/types/primitives.d.ts.map +1 -0
- package/dist/src/types/primitives.js +5 -0
- package/dist/src/types/primitives.js.map +1 -0
- package/dist/src/types/runtime.d.ts +5 -0
- package/dist/src/types/runtime.d.ts.map +1 -0
- package/dist/src/types/runtime.js +20 -0
- package/dist/src/types/runtime.js.map +1 -0
- package/dist/src/types/type-annotations.d.ts +28 -0
- package/dist/src/types/type-annotations.d.ts.map +1 -0
- package/dist/src/types/type-annotations.js +33 -0
- package/dist/src/types/type-annotations.js.map +1 -0
- package/dist/src/types.d.ts +2 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +7 -0
- package/dist/src/types.js.map +1 -0
- package/docs/.vitepress/config.mts +85 -0
- package/docs/content/CONTRIBUTING.md +53 -0
- package/docs/content/README-DEV.md +59 -0
- package/docs/content/README.md +52 -0
- package/docs/content/authentication.md +213 -0
- package/docs/content/cli.md +214 -0
- package/docs/content/configuration.md +191 -0
- package/docs/content/database.md +476 -0
- package/docs/content/devconsole.md +148 -0
- package/docs/content/di.md +212 -0
- package/docs/content/documentation-plan.md +182 -0
- package/docs/content/env.md +120 -0
- package/docs/content/getting-started.md +324 -0
- package/docs/content/health.md +64 -0
- package/docs/content/helpers.md +294 -0
- package/docs/content/http.md +402 -0
- package/docs/content/index.md +109 -0
- package/docs/content/leader-service.md +98 -0
- package/docs/content/logging.md +225 -0
- package/docs/content/mail.md +171 -0
- package/docs/content/mesh-client.md +333 -0
- package/docs/content/mesh-service.md +255 -0
- package/docs/content/migrations.md +190 -0
- package/docs/content/openapi.md +134 -0
- package/docs/content/overview.md +98 -0
- package/docs/content/public/images/devconsole/01-dashboard.png +0 -0
- package/docs/content/public/images/devconsole/02-routes.png +0 -0
- package/docs/content/public/images/devconsole/03-openapi.png +0 -0
- package/docs/content/public/images/devconsole/04-requests.png +0 -0
- package/docs/content/public/images/devconsole/05-srpc.png +0 -0
- package/docs/content/public/images/devconsole/06-database.png +0 -0
- package/docs/content/public/images/devconsole/06b-database-log.png +0 -0
- package/docs/content/public/images/devconsole/07-health.png +0 -0
- package/docs/content/public/images/devconsole/08-mutex.png +0 -0
- package/docs/content/public/images/devconsole/09-repl.png +0 -0
- package/docs/content/public/images/devconsole/10-workers.png +0 -0
- package/docs/content/public-api.md +84 -0
- package/docs/content/redis.md +174 -0
- package/docs/content/reflection.md +180 -0
- package/docs/content/release.md +100 -0
- package/docs/content/sql.md +121 -0
- package/docs/content/srpc.md +292 -0
- package/docs/content/telemetry.md +173 -0
- package/docs/content/testing.md +327 -0
- package/docs/content/type-reflection-architecture.md +149 -0
- package/docs/content/types.md +286 -0
- package/docs/content/uploads.md +145 -0
- package/docs/content/worker.md +182 -0
- package/docs/openapi.md +3 -0
- package/package.json +124 -0
- package/resources/proto/devconsole.proto +286 -0
- package/template-app/.env.development +10 -0
- package/template-app/gitignore.tmpl +11 -0
- package/template-app/package.json.tmpl +25 -0
- package/template-app/src/app.ts +13 -0
- package/template-app/src/config.ts +5 -0
- package/template-app/src/controllers/Example.controller.ts +19 -0
- package/template-app/src/database.ts +5 -0
- package/template-app/src/entities/Example.entity.ts +9 -0
- package/template-app/src/index.ts +7 -0
- package/template-app/src/migrations/.gitkeep +2 -0
- package/template-app/src/services/Example.service.ts +20 -0
- package/template-app/tests/app.spec.ts +8 -0
- package/template-app/tsconfig.json +26 -0
- package/template-app/tsconfig.test.json +5 -0
- package/types.d.ts +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/database/migration/create/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { Dialect } from '../../sql';
|
|
2
|
+
export { Dialect };
|
|
3
|
+
export declare const INTERNAL_TABLES: Set<string>;
|
|
4
|
+
export interface ColumnSchema {
|
|
5
|
+
name: string;
|
|
6
|
+
type: string;
|
|
7
|
+
size?: number;
|
|
8
|
+
scale?: number;
|
|
9
|
+
unsigned: boolean;
|
|
10
|
+
nullable: boolean;
|
|
11
|
+
autoIncrement: boolean;
|
|
12
|
+
primaryKey: boolean;
|
|
13
|
+
defaultValue?: string | number | boolean | null;
|
|
14
|
+
defaultExpression?: string;
|
|
15
|
+
onUpdateExpression?: string;
|
|
16
|
+
enumValues?: string[];
|
|
17
|
+
enumTypeName?: string;
|
|
18
|
+
afterColumn?: string | null;
|
|
19
|
+
ordinalPosition: number;
|
|
20
|
+
}
|
|
21
|
+
export interface TableSchema {
|
|
22
|
+
name: string;
|
|
23
|
+
columns: ColumnSchema[];
|
|
24
|
+
indexes: IndexSchema[];
|
|
25
|
+
foreignKeys: ForeignKeySchema[];
|
|
26
|
+
primaryKeyColumns?: string[];
|
|
27
|
+
primaryKeyConstraintName?: string;
|
|
28
|
+
}
|
|
29
|
+
export type DatabaseSchema = Map<string, TableSchema>;
|
|
30
|
+
export interface IndexSchema {
|
|
31
|
+
name: string;
|
|
32
|
+
columns: string[];
|
|
33
|
+
unique: boolean;
|
|
34
|
+
size?: number;
|
|
35
|
+
columnSizes?: Record<string, number>;
|
|
36
|
+
constraintName?: string;
|
|
37
|
+
spatial?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface ForeignKeySchema {
|
|
40
|
+
name: string;
|
|
41
|
+
localColumns: string[];
|
|
42
|
+
foreignTable: string;
|
|
43
|
+
foreignColumns: string[];
|
|
44
|
+
onDelete?: string;
|
|
45
|
+
onUpdate?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface TableForeignKeySchema {
|
|
48
|
+
tableName: string;
|
|
49
|
+
foreignKey: ForeignKeySchema;
|
|
50
|
+
}
|
|
51
|
+
export interface SchemaDiff {
|
|
52
|
+
dialect: Dialect;
|
|
53
|
+
pgSchema?: string;
|
|
54
|
+
externalForeignKeyDrops: TableForeignKeySchema[];
|
|
55
|
+
externalForeignKeyAdds: TableForeignKeySchema[];
|
|
56
|
+
addedTables: TableSchema[];
|
|
57
|
+
removedTables: TableSchema[];
|
|
58
|
+
modifiedTables: TableDiff[];
|
|
59
|
+
}
|
|
60
|
+
export interface TableDiff {
|
|
61
|
+
tableName: string;
|
|
62
|
+
addedColumns: ColumnSchema[];
|
|
63
|
+
removedColumns: ColumnSchema[];
|
|
64
|
+
modifiedColumns: ColumnModification[];
|
|
65
|
+
primaryKeyChanged: boolean;
|
|
66
|
+
oldPrimaryKey: string[];
|
|
67
|
+
newPrimaryKey: string[];
|
|
68
|
+
oldPrimaryKeyConstraintName?: string;
|
|
69
|
+
oldAutoIncrementPrimaryKeyColumns: ColumnSchema[];
|
|
70
|
+
newAutoIncrementColumns: ColumnSchema[];
|
|
71
|
+
addedIndexes: IndexSchema[];
|
|
72
|
+
removedIndexes: IndexSchema[];
|
|
73
|
+
modifiedIndexes: IndexModification[];
|
|
74
|
+
addedForeignKeys: ForeignKeySchema[];
|
|
75
|
+
removedForeignKeys: ForeignKeySchema[];
|
|
76
|
+
modifiedForeignKeys: ForeignKeyModification[];
|
|
77
|
+
preservedForeignKeys: ForeignKeySchema[];
|
|
78
|
+
}
|
|
79
|
+
export interface ColumnModification {
|
|
80
|
+
name: string;
|
|
81
|
+
oldColumn: ColumnSchema;
|
|
82
|
+
newColumn: ColumnSchema;
|
|
83
|
+
typeChanged: boolean;
|
|
84
|
+
nullableChanged: boolean;
|
|
85
|
+
defaultChanged: boolean;
|
|
86
|
+
autoIncrementChanged: boolean;
|
|
87
|
+
}
|
|
88
|
+
export interface IndexModification {
|
|
89
|
+
name: string;
|
|
90
|
+
oldIndex: IndexSchema;
|
|
91
|
+
newIndex: IndexSchema;
|
|
92
|
+
}
|
|
93
|
+
export interface ForeignKeyModification {
|
|
94
|
+
name: string;
|
|
95
|
+
oldForeignKey: ForeignKeySchema;
|
|
96
|
+
newForeignKey: ForeignKeySchema;
|
|
97
|
+
}
|
|
98
|
+
export declare function hasSchemaChanges(diff: SchemaDiff): boolean;
|
|
99
|
+
//# sourceMappingURL=schema-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-model.d.ts","sourceRoot":"","sources":["../../../../../src/database/migration/create/schema-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB,eAAO,MAAM,eAAe,aAA8C,CAAC;AAE3E,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IAChD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACrC;AAED,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAEtD,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,gBAAgB,CAAC;CAChC;AAED,MAAM,WAAW,UAAU;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uBAAuB,EAAE,qBAAqB,EAAE,CAAC;IACjD,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;IAChD,WAAW,EAAE,WAAW,EAAE,CAAC;IAC3B,aAAa,EAAE,WAAW,EAAE,CAAC;IAC7B,cAAc,EAAE,SAAS,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,SAAS;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,cAAc,EAAE,YAAY,EAAE,CAAC;IAC/B,eAAe,EAAE,kBAAkB,EAAE,CAAC;IACtC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,iCAAiC,EAAE,YAAY,EAAE,CAAC;IAClD,uBAAuB,EAAE,YAAY,EAAE,CAAC;IACxC,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,cAAc,EAAE,WAAW,EAAE,CAAC;IAC9B,eAAe,EAAE,iBAAiB,EAAE,CAAC;IACrC,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;IACrC,kBAAkB,EAAE,gBAAgB,EAAE,CAAC;IACvC,mBAAmB,EAAE,sBAAsB,EAAE,CAAC;IAC9C,oBAAoB,EAAE,gBAAgB,EAAE,CAAC;CAC5C;AAED,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,YAAY,CAAC;IACxB,SAAS,EAAE,YAAY,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,EAAE,OAAO,CAAC;CACjC;AAED,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,WAAW,CAAC;IACtB,QAAQ,EAAE,WAAW,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,gBAAgB,CAAC;IAChC,aAAa,EAAE,gBAAgB,CAAC;CACnC;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAqB1D"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.__tsfTypeAliases = exports.INTERNAL_TABLES = void 0;
|
|
4
|
+
exports.hasSchemaChanges = hasSchemaChanges;
|
|
5
|
+
exports.INTERNAL_TABLES = new Set(['_migrations', '_locks', '_jobs']);
|
|
6
|
+
function hasSchemaChanges(diff) {
|
|
7
|
+
return (diff.externalForeignKeyDrops.length > 0 ||
|
|
8
|
+
diff.externalForeignKeyAdds.length > 0 ||
|
|
9
|
+
diff.addedTables.length > 0 ||
|
|
10
|
+
diff.removedTables.length > 0 ||
|
|
11
|
+
diff.modifiedTables.some(table => table.addedColumns.length > 0 ||
|
|
12
|
+
table.removedColumns.length > 0 ||
|
|
13
|
+
table.modifiedColumns.length > 0 ||
|
|
14
|
+
table.primaryKeyChanged ||
|
|
15
|
+
table.addedIndexes.length > 0 ||
|
|
16
|
+
table.removedIndexes.length > 0 ||
|
|
17
|
+
table.modifiedIndexes.length > 0 ||
|
|
18
|
+
table.addedForeignKeys.length > 0 ||
|
|
19
|
+
table.removedForeignKeys.length > 0 ||
|
|
20
|
+
table.modifiedForeignKeys.length > 0 ||
|
|
21
|
+
table.preservedForeignKeys.length > 0));
|
|
22
|
+
}
|
|
23
|
+
exports.__tsfTypeAliases = ({ "ColumnModification": { kind: 18, typeName: "ColumnModification", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "oldColumn", type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] }, optional: false }, { kind: 20, name: "newColumn", type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] }, optional: false }, { kind: 20, name: "typeChanged", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullableChanged", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultChanged", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrementChanged", type: { kind: 8 }, optional: false }] }, "ColumnSchema": { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] }, "DatabaseSchema": { kind: 16, typeName: "Map", classType: () => (typeof Map !== "undefined" ? Map : (typeof exports !== "undefined" ? exports.Map : undefined)), typeArguments: [{ kind: 6 }, { kind: 18, typeName: "TableSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] } }, optional: false }, { kind: 20, name: "indexes", type: { kind: 14, type: { kind: 18, typeName: "IndexSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "unique", type: { kind: 8 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "columnSizes", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 7 }], index: { kind: 7 }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "constraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "spatial", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "foreignKeys", type: { kind: 14, type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "primaryKeyColumns", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "primaryKeyConstraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] }], typeName: "DatabaseSchema" }, "Dialect": { kind: 12, types: [{ kind: 10, literal: "mysql" }, { kind: 10, literal: "postgres" }], typeName: "Dialect" }, "ForeignKeyModification": { kind: 18, typeName: "ForeignKeyModification", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "oldForeignKey", type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] }, optional: false }, { kind: 20, name: "newForeignKey", type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] }, optional: false }] }, "ForeignKeySchema": { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] }, "IndexModification": { kind: 18, typeName: "IndexModification", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "oldIndex", type: { kind: 18, typeName: "IndexSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "unique", type: { kind: 8 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "columnSizes", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 7 }], index: { kind: 7 }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "constraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "spatial", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }, optional: false }, { kind: 20, name: "newIndex", type: { kind: 18, typeName: "IndexSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "unique", type: { kind: 8 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "columnSizes", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 7 }], index: { kind: 7 }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "constraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "spatial", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }, optional: false }] }, "IndexSchema": { kind: 18, typeName: "IndexSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "unique", type: { kind: 8 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "columnSizes", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 7 }], index: { kind: 7 }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "constraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "spatial", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }, "SchemaDiff": { kind: 18, typeName: "SchemaDiff", types: [{ kind: 20, name: "dialect", type: { kind: 12, types: [{ kind: 10, literal: "mysql" }, { kind: 10, literal: "postgres" }], typeName: "Dialect" }, optional: false }, { kind: 20, name: "pgSchema", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "externalForeignKeyDrops", type: { kind: 14, type: { kind: 18, typeName: "TableForeignKeySchema", types: [{ kind: 20, name: "tableName", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignKey", type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] }, optional: false }] } }, optional: false }, { kind: 20, name: "externalForeignKeyAdds", type: { kind: 14, type: { kind: 18, typeName: "TableForeignKeySchema", types: [{ kind: 20, name: "tableName", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignKey", type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] }, optional: false }] } }, optional: false }, { kind: 20, name: "addedTables", type: { kind: 14, type: { kind: 18, typeName: "TableSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] } }, optional: false }, { kind: 20, name: "indexes", type: { kind: 14, type: { kind: 18, typeName: "IndexSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "unique", type: { kind: 8 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "columnSizes", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 7 }], index: { kind: 7 }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "constraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "spatial", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "foreignKeys", type: { kind: 14, type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "primaryKeyColumns", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "primaryKeyConstraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "removedTables", type: { kind: 14, type: { kind: 18, typeName: "TableSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] } }, optional: false }, { kind: 20, name: "indexes", type: { kind: 14, type: { kind: 18, typeName: "IndexSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "unique", type: { kind: 8 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "columnSizes", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 7 }], index: { kind: 7 }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "constraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "spatial", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "foreignKeys", type: { kind: 14, type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "primaryKeyColumns", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "primaryKeyConstraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "modifiedTables", type: { kind: 14, type: { kind: 18, typeName: "TableDiff", types: [{ kind: 20, name: "tableName", type: { kind: 6 }, optional: false }, { kind: 20, name: "addedColumns", type: { kind: 14, type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] } }, optional: false }, { kind: 20, name: "removedColumns", type: { kind: 14, type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] } }, optional: false }, { kind: 20, name: "modifiedColumns", type: { kind: 14, type: { kind: 18, typeName: "ColumnModification", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "oldColumn", type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] }, optional: false }, { kind: 20, name: "newColumn", type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] }, optional: false }, { kind: 20, name: "typeChanged", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullableChanged", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultChanged", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrementChanged", type: { kind: 8 }, optional: false }] } }, optional: false }, { kind: 20, name: "primaryKeyChanged", type: { kind: 8 }, optional: false }, { kind: 20, name: "oldPrimaryKey", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "newPrimaryKey", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "oldPrimaryKeyConstraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oldAutoIncrementPrimaryKeyColumns", type: { kind: 14, type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] } }, optional: false }, { kind: 20, name: "newAutoIncrementColumns", type: { kind: 14, type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] } }, optional: false }, { kind: 20, name: "addedIndexes", type: { kind: 14, type: { kind: 18, typeName: "IndexSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "unique", type: { kind: 8 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "columnSizes", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 7 }], index: { kind: 7 }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "constraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "spatial", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "removedIndexes", type: { kind: 14, type: { kind: 18, typeName: "IndexSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "unique", type: { kind: 8 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "columnSizes", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 7 }], index: { kind: 7 }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "constraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "spatial", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "modifiedIndexes", type: { kind: 14, type: { kind: 18, typeName: "IndexModification", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "oldIndex", type: { kind: 18, typeName: "IndexSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "unique", type: { kind: 8 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "columnSizes", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 7 }], index: { kind: 7 }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "constraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "spatial", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }, optional: false }, { kind: 20, name: "newIndex", type: { kind: 18, typeName: "IndexSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "unique", type: { kind: 8 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "columnSizes", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 7 }], index: { kind: 7 }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "constraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "spatial", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }, optional: false }] } }, optional: false }, { kind: 20, name: "addedForeignKeys", type: { kind: 14, type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "removedForeignKeys", type: { kind: 14, type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "modifiedForeignKeys", type: { kind: 14, type: { kind: 18, typeName: "ForeignKeyModification", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "oldForeignKey", type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] }, optional: false }, { kind: 20, name: "newForeignKey", type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] }, optional: false }] } }, optional: false }, { kind: 20, name: "preservedForeignKeys", type: { kind: 14, type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] } }, optional: false }] } }, optional: false }] }, "TableDiff": { kind: 18, typeName: "TableDiff", types: [{ kind: 20, name: "tableName", type: { kind: 6 }, optional: false }, { kind: 20, name: "addedColumns", type: { kind: 14, type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] } }, optional: false }, { kind: 20, name: "removedColumns", type: { kind: 14, type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] } }, optional: false }, { kind: 20, name: "modifiedColumns", type: { kind: 14, type: { kind: 18, typeName: "ColumnModification", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "oldColumn", type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] }, optional: false }, { kind: 20, name: "newColumn", type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] }, optional: false }, { kind: 20, name: "typeChanged", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullableChanged", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultChanged", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrementChanged", type: { kind: 8 }, optional: false }] } }, optional: false }, { kind: 20, name: "primaryKeyChanged", type: { kind: 8 }, optional: false }, { kind: 20, name: "oldPrimaryKey", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "newPrimaryKey", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "oldPrimaryKeyConstraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "oldAutoIncrementPrimaryKeyColumns", type: { kind: 14, type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] } }, optional: false }, { kind: 20, name: "newAutoIncrementColumns", type: { kind: 14, type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] } }, optional: false }, { kind: 20, name: "addedIndexes", type: { kind: 14, type: { kind: 18, typeName: "IndexSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "unique", type: { kind: 8 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "columnSizes", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 7 }], index: { kind: 7 }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "constraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "spatial", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "removedIndexes", type: { kind: 14, type: { kind: 18, typeName: "IndexSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "unique", type: { kind: 8 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "columnSizes", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 7 }], index: { kind: 7 }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "constraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "spatial", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "modifiedIndexes", type: { kind: 14, type: { kind: 18, typeName: "IndexModification", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "oldIndex", type: { kind: 18, typeName: "IndexSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "unique", type: { kind: 8 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "columnSizes", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 7 }], index: { kind: 7 }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "constraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "spatial", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }, optional: false }, { kind: 20, name: "newIndex", type: { kind: 18, typeName: "IndexSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "unique", type: { kind: 8 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "columnSizes", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 7 }], index: { kind: 7 }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "constraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "spatial", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }, optional: false }] } }, optional: false }, { kind: 20, name: "addedForeignKeys", type: { kind: 14, type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "removedForeignKeys", type: { kind: 14, type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "modifiedForeignKeys", type: { kind: 14, type: { kind: 18, typeName: "ForeignKeyModification", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "oldForeignKey", type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] }, optional: false }, { kind: 20, name: "newForeignKey", type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] }, optional: false }] } }, optional: false }, { kind: 20, name: "preservedForeignKeys", type: { kind: 14, type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] } }, optional: false }] }, "TableForeignKeySchema": { kind: 18, typeName: "TableForeignKeySchema", types: [{ kind: 20, name: "tableName", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignKey", type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] }, optional: false }] }, "TableSchema": { kind: 18, typeName: "TableSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 18, typeName: "ColumnSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 8 }, optional: false }, { kind: 20, name: "nullable", type: { kind: 8 }, optional: false }, { kind: 20, name: "autoIncrement", type: { kind: 8 }, optional: false }, { kind: 20, name: "primaryKey", type: { kind: 8 }, optional: false }, { kind: 20, name: "defaultValue", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 8 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "defaultExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdateExpression", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumTypeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "afterColumn", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 6 }, { kind: 5 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ordinalPosition", type: { kind: 7 }, optional: false }] } }, optional: false }, { kind: 20, name: "indexes", type: { kind: 14, type: { kind: 18, typeName: "IndexSchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "columns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "unique", type: { kind: 8 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "columnSizes", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 7 }], index: { kind: 7 }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "constraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "spatial", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "foreignKeys", type: { kind: 14, type: { kind: 18, typeName: "ForeignKeySchema", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "localColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "foreignTable", type: { kind: 6 }, optional: false }, { kind: 20, name: "foreignColumns", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "onDelete", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "onUpdate", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "primaryKeyColumns", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "primaryKeyConstraintName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] } });
|
|
24
|
+
//# sourceMappingURL=schema-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-model.js","sourceRoot":"","sources":["../../../../../src/database/migration/create/schema-model.ts"],"names":[],"mappings":";;;;AAIa,QAAA,eAAe,GAAG,IAAI,GAAG,CAAC,CAAC,aAAa,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AA2G3E,0BAAiC,IAAgB;IAC7C,OAAO,CACH,IAAI,CAAC,uBAAuB,CAAC,MAAM,GAAG,CAAC;QACvC,IAAI,CAAC,sBAAsB,CAAC,MAAM,GAAG,CAAC;QACtC,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC;QAC3B,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC;QAC7B,IAAI,CAAC,cAAc,CAAC,IAAI,CACpB,KAAK,CAAC,EAAE,CACJ,KAAK,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC;YAC7B,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC;YAC/B,KAAK,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC;YAChC,KAAK,CAAC,iBAAiB;YACvB,KAAK,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC;YAC7B,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC;YAC/B,KAAK,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC;YAChC,KAAK,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC;YACjC,KAAK,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC;YACnC,KAAK,CAAC,mBAAmB,CAAC,MAAM,GAAG,CAAC;YACpC,KAAK,CAAC,oBAAoB,CAAC,MAAM,GAAG,CAAC,CAC5C,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Type } from '../../../reflection';
|
|
2
|
+
import type { Dialect } from '../../sql';
|
|
3
|
+
export interface ResolvedColumnType {
|
|
4
|
+
type: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
scale?: number;
|
|
7
|
+
unsigned?: boolean;
|
|
8
|
+
enumValues?: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare function resolveColumnType(type: Type, dialect: Dialect): ResolvedColumnType;
|
|
11
|
+
export declare function parseRawSqlType(raw: string, dialect: Dialect): ResolvedColumnType;
|
|
12
|
+
export declare function canonicalType(type: string): string;
|
|
13
|
+
//# sourceMappingURL=type-mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-mapper.d.ts","sourceRoot":"","sources":["../../../../../src/database/migration/create/type-mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0D,IAAI,EAAwC,MAAM,qBAAqB,CAAC;AAIzI,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,GAAG,kBAAkB,CAElF;AAuPD,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,kBAAkB,CA0BjF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAkBlD"}
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.__tsfTypeAliases = void 0;
|
|
4
|
+
exports.resolveColumnType = resolveColumnType;
|
|
5
|
+
exports.parseRawSqlType = parseRawSqlType;
|
|
6
|
+
exports.canonicalType = canonicalType;
|
|
7
|
+
const reflection_1 = require("../../../reflection");
|
|
8
|
+
const type_utils_1 = require("../../../reflection/type-utils");
|
|
9
|
+
const type_annotations_1 = require("../../../types/type-annotations");
|
|
10
|
+
function resolveColumnType(type, dialect) {
|
|
11
|
+
return applyMinimumUnsigned(type, dialect, resolveColumnTypeBase(type, dialect));
|
|
12
|
+
}
|
|
13
|
+
function resolveColumnTypeBase(type, dialect) {
|
|
14
|
+
if (hasConflictingTypeAnnotation(type, 'tsf:type'))
|
|
15
|
+
return { type: 'json' };
|
|
16
|
+
const rawType = getDatabaseTypeAnnotation(type, dialect);
|
|
17
|
+
if (rawType)
|
|
18
|
+
return parseRawSqlType(rawType, dialect);
|
|
19
|
+
if (type.kind === reflection_1.ReflectionKind.union) {
|
|
20
|
+
const nonNull = type.types.filter(item => item.kind !== reflection_1.ReflectionKind.null && item.kind !== reflection_1.ReflectionKind.undefined);
|
|
21
|
+
if (nonNull.length === 1)
|
|
22
|
+
return resolveColumnType(nonNull[0], dialect);
|
|
23
|
+
if (nonNull.length > 0 &&
|
|
24
|
+
nonNull.every(item => item.kind === reflection_1.ReflectionKind.literal && typeof item.literal === 'string')) {
|
|
25
|
+
return {
|
|
26
|
+
type: 'enum',
|
|
27
|
+
enumValues: nonNull.map(item => String(item.literal))
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
return { type: 'json' };
|
|
31
|
+
}
|
|
32
|
+
const foundationType = getTypeAnnotation(type, 'tsf:type');
|
|
33
|
+
if (foundationType?.kind === reflection_1.ReflectionKind.literal) {
|
|
34
|
+
switch (foundationType.literal) {
|
|
35
|
+
case 'date':
|
|
36
|
+
return { type: 'date' };
|
|
37
|
+
case 'phone':
|
|
38
|
+
case 'phoneNanp':
|
|
39
|
+
return { type: 'varchar', size: 20 };
|
|
40
|
+
case 'uuid':
|
|
41
|
+
return uuidColumnType(dialect);
|
|
42
|
+
case 'uuidString':
|
|
43
|
+
return uuidStringColumnType(dialect);
|
|
44
|
+
case 'integer':
|
|
45
|
+
return { type: 'int' };
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
if ((0, reflection_1.isDatabaseUUIDType)(type)) {
|
|
49
|
+
return uuidColumnType(dialect);
|
|
50
|
+
}
|
|
51
|
+
if (isBinaryType(type)) {
|
|
52
|
+
return binaryColumnType(dialect);
|
|
53
|
+
}
|
|
54
|
+
const length = getTypeAnnotation(type, 'tsf:length');
|
|
55
|
+
if (length?.kind === reflection_1.ReflectionKind.literal && typeof length.literal === 'number') {
|
|
56
|
+
return { type: 'char', size: length.literal };
|
|
57
|
+
}
|
|
58
|
+
const maxLength = getMaxLength(type);
|
|
59
|
+
if (maxLength !== undefined) {
|
|
60
|
+
return { type: 'varchar', size: maxLength };
|
|
61
|
+
}
|
|
62
|
+
if (type.kind === reflection_1.ReflectionKind.intersection) {
|
|
63
|
+
const rawIntersectionType = getDatabaseTypeAnnotation(type, dialect);
|
|
64
|
+
if (rawIntersectionType)
|
|
65
|
+
return parseRawSqlType(rawIntersectionType, dialect);
|
|
66
|
+
const foundationIntersectionType = getTypeAnnotation(type, 'tsf:type');
|
|
67
|
+
if (foundationIntersectionType?.kind === reflection_1.ReflectionKind.literal) {
|
|
68
|
+
switch (foundationIntersectionType.literal) {
|
|
69
|
+
case 'date':
|
|
70
|
+
return { type: 'date' };
|
|
71
|
+
case 'phone':
|
|
72
|
+
case 'phoneNanp':
|
|
73
|
+
return { type: 'varchar', size: 20 };
|
|
74
|
+
case 'uuid':
|
|
75
|
+
return uuidColumnType(dialect);
|
|
76
|
+
case 'uuidString':
|
|
77
|
+
return uuidStringColumnType(dialect);
|
|
78
|
+
case 'integer':
|
|
79
|
+
return { type: 'int' };
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if ((0, reflection_1.isDatabaseUUIDType)(type)) {
|
|
83
|
+
return uuidColumnType(dialect);
|
|
84
|
+
}
|
|
85
|
+
if (isBinaryType(type)) {
|
|
86
|
+
return binaryColumnType(dialect);
|
|
87
|
+
}
|
|
88
|
+
const intersectionLength = getTypeAnnotation(type, 'tsf:length');
|
|
89
|
+
if (intersectionLength?.kind === reflection_1.ReflectionKind.literal && typeof intersectionLength.literal === 'number') {
|
|
90
|
+
return { type: 'char', size: intersectionLength.literal };
|
|
91
|
+
}
|
|
92
|
+
const intersectionMaxLength = getMaxLength(type);
|
|
93
|
+
if (intersectionMaxLength !== undefined) {
|
|
94
|
+
return { type: 'varchar', size: intersectionMaxLength };
|
|
95
|
+
}
|
|
96
|
+
const base = type.types.find(item => [
|
|
97
|
+
reflection_1.ReflectionKind.string,
|
|
98
|
+
reflection_1.ReflectionKind.number,
|
|
99
|
+
reflection_1.ReflectionKind.boolean,
|
|
100
|
+
reflection_1.ReflectionKind.bigint,
|
|
101
|
+
reflection_1.ReflectionKind.enum,
|
|
102
|
+
reflection_1.ReflectionKind.union,
|
|
103
|
+
reflection_1.ReflectionKind.class,
|
|
104
|
+
reflection_1.ReflectionKind.literal
|
|
105
|
+
].includes(item.kind));
|
|
106
|
+
if (base)
|
|
107
|
+
return resolveColumnType(base, dialect);
|
|
108
|
+
}
|
|
109
|
+
if (type.kind === reflection_1.ReflectionKind.enum) {
|
|
110
|
+
const values = type.values.filter(value => value !== null && value !== undefined);
|
|
111
|
+
if (values.length && values.every(value => typeof value === 'string')) {
|
|
112
|
+
return { type: 'enum', enumValues: values.map(String) };
|
|
113
|
+
}
|
|
114
|
+
return { type: 'int' };
|
|
115
|
+
}
|
|
116
|
+
if (type.kind === reflection_1.ReflectionKind.literal) {
|
|
117
|
+
switch (typeof type.literal) {
|
|
118
|
+
case 'string':
|
|
119
|
+
return { type: 'varchar', size: 255 };
|
|
120
|
+
case 'number':
|
|
121
|
+
return { type: 'double' };
|
|
122
|
+
case 'boolean':
|
|
123
|
+
return dialect === 'postgres' ? { type: 'boolean' } : { type: 'tinyint', size: 1, unsigned: true };
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
switch (type.kind) {
|
|
127
|
+
case reflection_1.ReflectionKind.string:
|
|
128
|
+
return { type: 'varchar', size: 255 };
|
|
129
|
+
case reflection_1.ReflectionKind.number:
|
|
130
|
+
return { type: 'double' };
|
|
131
|
+
case reflection_1.ReflectionKind.bigint:
|
|
132
|
+
return { type: 'bigint' };
|
|
133
|
+
case reflection_1.ReflectionKind.boolean:
|
|
134
|
+
return dialect === 'postgres' ? { type: 'boolean' } : { type: 'tinyint', size: 1, unsigned: true };
|
|
135
|
+
case reflection_1.ReflectionKind.class: {
|
|
136
|
+
const classType = (0, type_utils_1.tryResolveClassType)(type.classType);
|
|
137
|
+
if (classType === Date)
|
|
138
|
+
return dialect === 'postgres' ? { type: 'timestamp' } : { type: 'datetime' };
|
|
139
|
+
if (dialect === 'mysql' && classType === type_annotations_1.Coordinate)
|
|
140
|
+
return { type: 'point' };
|
|
141
|
+
if (isBinaryType(type))
|
|
142
|
+
return binaryColumnType(dialect);
|
|
143
|
+
return { type: 'json' };
|
|
144
|
+
}
|
|
145
|
+
case reflection_1.ReflectionKind.objectLiteral:
|
|
146
|
+
case reflection_1.ReflectionKind.array:
|
|
147
|
+
case reflection_1.ReflectionKind.any:
|
|
148
|
+
return { type: 'json' };
|
|
149
|
+
default:
|
|
150
|
+
return { type: 'json' };
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
function applyMinimumUnsigned(type, dialect, resolved) {
|
|
154
|
+
if (dialect !== 'mysql' || resolved.unsigned === true || !supportsUnsigned(resolved))
|
|
155
|
+
return resolved;
|
|
156
|
+
const minimum = getMinimum(type);
|
|
157
|
+
return minimum !== undefined && minimum >= 0 ? { ...resolved, unsigned: true } : resolved;
|
|
158
|
+
}
|
|
159
|
+
function supportsUnsigned(resolved) {
|
|
160
|
+
return ['bigint', 'decimal', 'double', 'float', 'int', 'mediumint', 'smallint', 'tinyint'].includes(resolved.type);
|
|
161
|
+
}
|
|
162
|
+
function uuidColumnType(dialect) {
|
|
163
|
+
return dialect === 'postgres' ? { type: 'uuid' } : { type: 'binary', size: 16 };
|
|
164
|
+
}
|
|
165
|
+
function uuidStringColumnType(dialect) {
|
|
166
|
+
return dialect === 'postgres' ? { type: 'uuid' } : { type: 'char', size: 36 };
|
|
167
|
+
}
|
|
168
|
+
function binaryColumnType(dialect) {
|
|
169
|
+
return dialect === 'postgres' ? { type: 'bytea' } : { type: 'blob' };
|
|
170
|
+
}
|
|
171
|
+
function isBinaryType(type) {
|
|
172
|
+
const typeName = type.typeName;
|
|
173
|
+
if (typeName === 'Uint8Array' || typeName === 'ArrayBuffer' || typeName === 'Buffer')
|
|
174
|
+
return true;
|
|
175
|
+
if (type.kind === reflection_1.ReflectionKind.class) {
|
|
176
|
+
const className = type.classType?.name;
|
|
177
|
+
return className === 'Uint8Array' || className === 'ArrayBuffer' || className === 'Buffer';
|
|
178
|
+
}
|
|
179
|
+
if ('types' in type && Array.isArray(type.types))
|
|
180
|
+
return type.types.some(isBinaryType);
|
|
181
|
+
return false;
|
|
182
|
+
}
|
|
183
|
+
function getTypeAnnotation(type, ...names) {
|
|
184
|
+
for (const name of names) {
|
|
185
|
+
const direct = reflection_1.typeAnnotation.getType(type, name);
|
|
186
|
+
if (direct)
|
|
187
|
+
return direct;
|
|
188
|
+
}
|
|
189
|
+
if ('types' in type && Array.isArray(type.types)) {
|
|
190
|
+
for (const child of type.types) {
|
|
191
|
+
const nested = getTypeAnnotation(child, ...names);
|
|
192
|
+
if (nested)
|
|
193
|
+
return nested;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
function getMaxLength(type) {
|
|
198
|
+
for (const annotation of reflection_1.validationAnnotation.getAnnotations(type)) {
|
|
199
|
+
if (annotation.name !== 'maxLength')
|
|
200
|
+
continue;
|
|
201
|
+
const arg = annotation.args?.[0];
|
|
202
|
+
if (arg?.kind === reflection_1.ReflectionKind.literal && typeof arg.literal === 'number')
|
|
203
|
+
return arg.literal;
|
|
204
|
+
}
|
|
205
|
+
if ('types' in type && Array.isArray(type.types)) {
|
|
206
|
+
for (const child of type.types) {
|
|
207
|
+
const nested = getMaxLength(child);
|
|
208
|
+
if (nested !== undefined)
|
|
209
|
+
return nested;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
function getMinimum(type) {
|
|
214
|
+
let minimum;
|
|
215
|
+
for (const annotation of reflection_1.validationAnnotation.getAnnotations(type)) {
|
|
216
|
+
if (annotation.name !== 'minimum' && annotation.name !== 'greaterThan')
|
|
217
|
+
continue;
|
|
218
|
+
const arg = annotation.args?.[0];
|
|
219
|
+
if (arg?.kind !== reflection_1.ReflectionKind.literal || typeof arg.literal !== 'number')
|
|
220
|
+
continue;
|
|
221
|
+
minimum = minimum === undefined ? arg.literal : Math.max(minimum, arg.literal);
|
|
222
|
+
}
|
|
223
|
+
return minimum;
|
|
224
|
+
}
|
|
225
|
+
function hasConflictingTypeAnnotation(type, name) {
|
|
226
|
+
const values = new Set();
|
|
227
|
+
collectTypeAnnotationLiterals(type, name, values);
|
|
228
|
+
return values.size > 1;
|
|
229
|
+
}
|
|
230
|
+
function collectTypeAnnotationLiterals(type, name, values) {
|
|
231
|
+
const direct = type.annotations?.[name];
|
|
232
|
+
if (direct?.kind === reflection_1.ReflectionKind.literal)
|
|
233
|
+
values.add(direct.literal);
|
|
234
|
+
if (type.kind === reflection_1.ReflectionKind.intersection || type.kind === reflection_1.ReflectionKind.union) {
|
|
235
|
+
for (const item of type.types)
|
|
236
|
+
collectTypeAnnotationLiterals(item, name, values);
|
|
237
|
+
}
|
|
238
|
+
else if (type.kind === reflection_1.ReflectionKind.array) {
|
|
239
|
+
collectTypeAnnotationLiterals(type.type, name, values);
|
|
240
|
+
}
|
|
241
|
+
else if (type.kind === reflection_1.ReflectionKind.tuple) {
|
|
242
|
+
for (const item of type.types)
|
|
243
|
+
collectTypeAnnotationLiterals(item.type, name, values);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
function parseRawSqlType(raw, dialect) {
|
|
247
|
+
const normalized = raw.trim().toLowerCase().replace(/\s+/g, ' ');
|
|
248
|
+
const unsigned = dialect === 'mysql' && /\bunsigned\b/.test(normalized);
|
|
249
|
+
const withoutUnsigned = normalized.replace(/\bunsigned\b/g, '').trim();
|
|
250
|
+
const enumMatch = withoutUnsigned.match(/^enum\s*\((.*)\)$/);
|
|
251
|
+
if (enumMatch) {
|
|
252
|
+
return {
|
|
253
|
+
type: 'enum',
|
|
254
|
+
enumValues: enumMatch[1].split(',').map(item => item
|
|
255
|
+
.trim()
|
|
256
|
+
.replace(/^'(.*)'$/, '$1')
|
|
257
|
+
.replace(/''/g, "'"))
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
const match = withoutUnsigned.match(/^([a-z ]+?)(?:\((\d+)(?:\s*,\s*(\d+))?\))?$/);
|
|
261
|
+
if (!match)
|
|
262
|
+
return { type: canonicalType(withoutUnsigned), unsigned };
|
|
263
|
+
return {
|
|
264
|
+
type: canonicalType(match[1].trim()),
|
|
265
|
+
size: match[2] === undefined ? undefined : Number(match[2]),
|
|
266
|
+
scale: match[3] === undefined ? undefined : Number(match[3]),
|
|
267
|
+
unsigned
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
function canonicalType(type) {
|
|
271
|
+
switch (type.toLowerCase()) {
|
|
272
|
+
case 'integer':
|
|
273
|
+
return 'int';
|
|
274
|
+
case 'bool':
|
|
275
|
+
return 'boolean';
|
|
276
|
+
case 'numeric':
|
|
277
|
+
return 'decimal';
|
|
278
|
+
case 'character varying':
|
|
279
|
+
return 'varchar';
|
|
280
|
+
case 'timestamp without time zone':
|
|
281
|
+
case 'timestamp with time zone':
|
|
282
|
+
return 'timestamp';
|
|
283
|
+
case 'double precision':
|
|
284
|
+
return 'double';
|
|
285
|
+
default:
|
|
286
|
+
return type.toLowerCase();
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
function getDatabaseTypeAnnotation(type, dialect) {
|
|
290
|
+
return (reflection_1.databaseAnnotation.getDatabase(type, dialect)?.type ?? reflection_1.databaseAnnotation.getDatabase(type, '*')?.type);
|
|
291
|
+
}
|
|
292
|
+
exports.__tsfTypeAliases = ({ "ResolvedColumnType": { kind: 18, typeName: "ResolvedColumnType", types: [{ kind: 20, name: "type", type: { kind: 6 }, optional: false }, { kind: 20, name: "size", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "scale", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "unsigned", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "enumValues", type: { kind: 12, types: [{ kind: 14, type: { kind: 6 } }, { kind: 4 }] }, optional: true }] } });
|
|
293
|
+
//# sourceMappingURL=type-mapper.js.map
|