@anthonyalayo/drizzle-kit 1.0.1

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.
Files changed (161) hide show
  1. package/.gitignore +25 -0
  2. package/README.md +79 -0
  3. package/build.dev.ts +51 -0
  4. package/build.ts +112 -0
  5. package/imports-checker/analyze.ts +78 -0
  6. package/imports-checker/checker.ts +296 -0
  7. package/imports-checker/grammar/grammar.ohm +121 -0
  8. package/imports-checker/grammar/grammar.ohm-bundle.d.ts +164 -0
  9. package/imports-checker/grammar/grammar.ohm-bundle.js +753 -0
  10. package/imports-checker/index.ts +48 -0
  11. package/package.json +142 -0
  12. package/patches/difflib@0.2.4.patch +31 -0
  13. package/src/@types/utils.ts +58 -0
  14. package/src/api.ts +504 -0
  15. package/src/cli/commands/_es5.ts +2 -0
  16. package/src/cli/commands/check.ts +52 -0
  17. package/src/cli/commands/drop.ts +60 -0
  18. package/src/cli/commands/introspect.ts +772 -0
  19. package/src/cli/commands/libSqlPushUtils.ts +355 -0
  20. package/src/cli/commands/migrate.ts +1526 -0
  21. package/src/cli/commands/mysqlIntrospect.ts +53 -0
  22. package/src/cli/commands/mysqlPushUtils.ts +352 -0
  23. package/src/cli/commands/mysqlUp.ts +102 -0
  24. package/src/cli/commands/pgIntrospect.ts +55 -0
  25. package/src/cli/commands/pgPushUtils.ts +269 -0
  26. package/src/cli/commands/pgUp.ts +217 -0
  27. package/src/cli/commands/push.ts +637 -0
  28. package/src/cli/commands/singlestoreIntrospect.ts +53 -0
  29. package/src/cli/commands/singlestorePushUtils.ts +456 -0
  30. package/src/cli/commands/singlestoreUp.ts +1 -0
  31. package/src/cli/commands/sqliteIntrospect.ts +96 -0
  32. package/src/cli/commands/sqlitePushUtils.ts +322 -0
  33. package/src/cli/commands/sqliteUp.ts +52 -0
  34. package/src/cli/commands/utils.ts +858 -0
  35. package/src/cli/connections.ts +914 -0
  36. package/src/cli/index.ts +48 -0
  37. package/src/cli/schema.ts +794 -0
  38. package/src/cli/selector-ui.ts +38 -0
  39. package/src/cli/utils.ts +112 -0
  40. package/src/cli/validations/cli.ts +79 -0
  41. package/src/cli/validations/common.ts +193 -0
  42. package/src/cli/validations/libsql.ts +27 -0
  43. package/src/cli/validations/mysql.ts +61 -0
  44. package/src/cli/validations/outputs.ts +91 -0
  45. package/src/cli/validations/postgres.ts +83 -0
  46. package/src/cli/validations/singlestore.ts +61 -0
  47. package/src/cli/validations/sqlite.ts +104 -0
  48. package/src/cli/validations/studio.ts +24 -0
  49. package/src/cli/views.ts +658 -0
  50. package/src/extensions/getTablesFilterByExtensions.ts +16 -0
  51. package/src/extensions/vector.ts +10 -0
  52. package/src/global.ts +61 -0
  53. package/src/index.ts +326 -0
  54. package/src/introspect-mysql.ts +1030 -0
  55. package/src/introspect-pg.ts +1435 -0
  56. package/src/introspect-singlestore.ts +913 -0
  57. package/src/introspect-sqlite.ts +533 -0
  58. package/src/jsonDiffer.js +882 -0
  59. package/src/jsonStatements.ts +3590 -0
  60. package/src/loader.mjs +57 -0
  61. package/src/migrationPreparator.ts +217 -0
  62. package/src/schemaValidator.ts +23 -0
  63. package/src/serializer/index.ts +142 -0
  64. package/src/serializer/mysqlImports.ts +38 -0
  65. package/src/serializer/mysqlSchema.ts +423 -0
  66. package/src/serializer/mysqlSerializer.ts +999 -0
  67. package/src/serializer/pgImports.ts +106 -0
  68. package/src/serializer/pgSchema.ts +937 -0
  69. package/src/serializer/pgSerializer.ts +2223 -0
  70. package/src/serializer/singlestoreImports.ts +38 -0
  71. package/src/serializer/singlestoreSchema.ts +257 -0
  72. package/src/serializer/singlestoreSerializer.ts +767 -0
  73. package/src/serializer/sqliteImports.ts +41 -0
  74. package/src/serializer/sqliteSchema.ts +352 -0
  75. package/src/serializer/sqliteSerializer.ts +931 -0
  76. package/src/serializer/studio.ts +694 -0
  77. package/src/serializer/utils.ts +45 -0
  78. package/src/simulator.ts +157 -0
  79. package/src/snapshotsDiffer.ts +4398 -0
  80. package/src/sqlgenerator.ts +4212 -0
  81. package/src/statementCombiner.ts +597 -0
  82. package/src/utils/certs.ts +44 -0
  83. package/src/utils/words.ts +1333 -0
  84. package/src/utils.ts +370 -0
  85. package/tests/bin.test.ts +58 -0
  86. package/tests/cli/d1http.config.ts +12 -0
  87. package/tests/cli/drizzle.config.ts +9 -0
  88. package/tests/cli/durable-sqlite.config.ts +7 -0
  89. package/tests/cli/expo.config.ts +7 -0
  90. package/tests/cli/postgres.config.ts +13 -0
  91. package/tests/cli/postgres2.config.ts +17 -0
  92. package/tests/cli/schema.ts +1 -0
  93. package/tests/cli/turso.config.ts +10 -0
  94. package/tests/cli-export.test.ts +79 -0
  95. package/tests/cli-generate.test.ts +259 -0
  96. package/tests/cli-migrate.test.ts +103 -0
  97. package/tests/cli-push.test.ts +126 -0
  98. package/tests/common.ts +15 -0
  99. package/tests/indexes/common.ts +21 -0
  100. package/tests/indexes/pg.test.ts +245 -0
  101. package/tests/introspect/libsql.test.ts +35 -0
  102. package/tests/introspect/mysql.test.ts +319 -0
  103. package/tests/introspect/pg.test.ts +894 -0
  104. package/tests/introspect/singlestore.test.ts +275 -0
  105. package/tests/introspect/sqlite.test.ts +122 -0
  106. package/tests/libsql-checks.test.ts +308 -0
  107. package/tests/libsql-statements.test.ts +989 -0
  108. package/tests/libsql-views.test.ts +218 -0
  109. package/tests/migrate/libsq-schema.ts +6 -0
  110. package/tests/migrate/libsql-migrate.test.ts +58 -0
  111. package/tests/migrate/migrations/0000_little_blizzard.sql +4 -0
  112. package/tests/migrate/migrations/0001_nebulous_storm.sql +10 -0
  113. package/tests/migrate/migrations/meta/0000_snapshot.json +40 -0
  114. package/tests/migrate/migrations/meta/0001_snapshot.json +40 -0
  115. package/tests/migrate/migrations/meta/_journal.json +20 -0
  116. package/tests/mysql-checks.test.ts +291 -0
  117. package/tests/mysql-generated.test.ts +1290 -0
  118. package/tests/mysql-schemas.test.ts +156 -0
  119. package/tests/mysql-views.test.ts +553 -0
  120. package/tests/mysql.test.ts +863 -0
  121. package/tests/pg-array.test.ts +368 -0
  122. package/tests/pg-checks.test.ts +329 -0
  123. package/tests/pg-columns.test.ts +484 -0
  124. package/tests/pg-domains.test.ts +306 -0
  125. package/tests/pg-enums.test.ts +751 -0
  126. package/tests/pg-generated.test.ts +529 -0
  127. package/tests/pg-identity.test.ts +447 -0
  128. package/tests/pg-schemas.test.ts +105 -0
  129. package/tests/pg-sequences.test.ts +298 -0
  130. package/tests/pg-tables.test.ts +1021 -0
  131. package/tests/pg-views.test.ts +1929 -0
  132. package/tests/push/common.ts +58 -0
  133. package/tests/push/libsql.test.ts +1400 -0
  134. package/tests/push/mysql-push.test.ts +345 -0
  135. package/tests/push/mysql.test.ts +788 -0
  136. package/tests/push/pg.test.ts +4341 -0
  137. package/tests/push/singlestore-push.test.ts +894 -0
  138. package/tests/push/singlestore.test.ts +444 -0
  139. package/tests/push/sqlite.test.ts +1613 -0
  140. package/tests/rls/pg-policy.test.ts +1656 -0
  141. package/tests/rls/pg-role.test.ts +234 -0
  142. package/tests/schemaDiffer.ts +2852 -0
  143. package/tests/singlestore-generated.test.ts +1290 -0
  144. package/tests/singlestore-schemas.test.ts +155 -0
  145. package/tests/singlestore.test.ts +978 -0
  146. package/tests/sqlite-checks.test.ts +308 -0
  147. package/tests/sqlite-columns.test.ts +1049 -0
  148. package/tests/sqlite-generated.test.ts +1726 -0
  149. package/tests/sqlite-tables.test.ts +637 -0
  150. package/tests/sqlite-views.test.ts +218 -0
  151. package/tests/statements-combiner/libsql-statements-combiner.test.ts +1812 -0
  152. package/tests/statements-combiner/singlestore-statements-combiner.test.ts +882 -0
  153. package/tests/statements-combiner/sqlite-statements-combiner.test.ts +1211 -0
  154. package/tests/test/sqlite.test.ts +39 -0
  155. package/tests/testsinglestore.ts +29 -0
  156. package/tests/validations.test.ts +869 -0
  157. package/tests/wrap-param.test.ts +16 -0
  158. package/tsconfig.build.json +4 -0
  159. package/tsconfig.cli-types.json +9 -0
  160. package/tsconfig.json +28 -0
  161. package/vitest.config.ts +34 -0
package/src/global.ts ADDED
@@ -0,0 +1,61 @@
1
+ export const originUUID = '00000000-0000-0000-0000-000000000000';
2
+ export const snapshotVersion = '8';
3
+
4
+ export function assertUnreachable(x: never | undefined): never {
5
+ throw new Error("Didn't expect to get here");
6
+ }
7
+
8
+ // don't fail in runtime, types only
9
+ export function softAssertUnreachable(x: never) {
10
+ return null as never;
11
+ }
12
+
13
+ export const mapValues = <IN, OUT>(
14
+ obj: Record<string, IN>,
15
+ map: (input: IN) => OUT,
16
+ ): Record<string, OUT> => {
17
+ const result = Object.keys(obj).reduce(function(result, key) {
18
+ result[key] = map(obj[key]);
19
+ return result;
20
+ }, {} as Record<string, OUT>);
21
+ return result;
22
+ };
23
+
24
+ export const mapKeys = <T>(
25
+ obj: Record<string, T>,
26
+ map: (key: string, value: T) => string,
27
+ ): Record<string, T> => {
28
+ const result = Object.fromEntries(
29
+ Object.entries(obj).map(([key, val]) => {
30
+ const newKey = map(key, val);
31
+ return [newKey, val];
32
+ }),
33
+ );
34
+ return result;
35
+ };
36
+
37
+ export const mapEntries = <T>(
38
+ obj: Record<string, T>,
39
+ map: (key: string, value: T) => [string, T],
40
+ ): Record<string, T> => {
41
+ const result = Object.fromEntries(
42
+ Object.entries(obj).map(([key, val]) => {
43
+ const [newKey, newVal] = map(key, val);
44
+ return [newKey, newVal];
45
+ }),
46
+ );
47
+ return result;
48
+ };
49
+
50
+ export const customMapEntries = <TReturn, T = any>(
51
+ obj: Record<string, T>,
52
+ map: (key: string, value: T) => [string, TReturn],
53
+ ): Record<string, TReturn> => {
54
+ const result = Object.fromEntries(
55
+ Object.entries(obj).map(([key, val]) => {
56
+ const [newKey, newVal] = map(key, val);
57
+ return [newKey, newVal];
58
+ }),
59
+ );
60
+ return result;
61
+ };
package/src/index.ts ADDED
@@ -0,0 +1,326 @@
1
+ import { ConnectionOptions } from 'tls';
2
+ import type { Driver, Prefix } from './cli/validations/common';
3
+ import type { Dialect } from './schemaValidator';
4
+
5
+ // import {SslOptions} from 'mysql2'
6
+ type SslOptions = {
7
+ pfx?: string;
8
+ key?: string;
9
+ passphrase?: string;
10
+ cert?: string;
11
+ ca?: string | string[];
12
+ crl?: string | string[];
13
+ ciphers?: string;
14
+ rejectUnauthorized?: boolean;
15
+ };
16
+
17
+ type Verify<T, U extends T> = U;
18
+
19
+ /**
20
+ * **You are currently using version 0.21.0+ of drizzle-kit. If you have just upgraded to this version, please make sure to read the changelog to understand what changes have been made and what
21
+ * adjustments may be necessary for you. See https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210**
22
+ *
23
+ * **Config** usage:
24
+ *
25
+ * `dialect` - mandatory and is responsible for explicitly providing a databse dialect you are using for all the commands
26
+ * *Possible values*: `postgresql`, `mysql`, `sqlite`, `singlestore
27
+ *
28
+ * See https://orm.drizzle.team/kit-docs/config-reference#dialect
29
+ *
30
+ * ---
31
+ * `schema` - param lets you define where your schema file/files live.
32
+ * You can have as many separate schema files as you want and define paths to them using glob or array of globs syntax.
33
+ *
34
+ * See https://orm.drizzle.team/kit-docs/config-reference#schema
35
+ *
36
+ * ---
37
+ * `out` - allows you to define the folder for your migrations and a folder, where drizzle will introspect the schema and relations
38
+ *
39
+ * See https://orm.drizzle.team/kit-docs/config-reference#out
40
+ *
41
+ * ---
42
+ * `driver` - optional param that is responsible for explicitly providing a driver to use when accessing a database
43
+ * *Possible values*: `aws-data-api`, `d1-http`, `expo`, `turso`, `pglite`
44
+ * If you don't use AWS Data API, D1, Turso or Expo - ypu don't need this driver. You can check a driver strategy choice here: https://orm.drizzle.team/kit-docs/upgrade-21
45
+ *
46
+ * See https://orm.drizzle.team/kit-docs/config-reference#driver
47
+ *
48
+ * ---
49
+ *
50
+ * `dbCredentials` - an object to define your connection to the database. For more info please check the docs
51
+ *
52
+ * See https://orm.drizzle.team/kit-docs/config-reference#dbcredentials
53
+ *
54
+ * ---
55
+ *
56
+ * `migrations` - param let’s use specify custom table and schema(PostgreSQL only) for migrations.
57
+ * By default, all information about executed migrations will be stored in the database inside
58
+ * the `__drizzle_migrations` table, and for PostgreSQL, inside the drizzle schema.
59
+ * However, you can configure where to store those records.
60
+ *
61
+ * See https://orm.drizzle.team/kit-docs/config-reference#migrations
62
+ *
63
+ * ---
64
+ *
65
+ * `breakpoints` - param lets you enable/disable SQL statement breakpoints in generated migrations.
66
+ * It’s optional and true by default, it’s necessary to properly apply migrations on databases,
67
+ * that do not support multiple DDL alternation statements in one transaction(MySQL, SQLite, SingleStore) and
68
+ * Drizzle ORM has to apply them sequentially one by one.
69
+ *
70
+ * See https://orm.drizzle.team/kit-docs/config-reference#breakpoints
71
+ *
72
+ * ---
73
+ *
74
+ * `tablesFilters` - param lets you filter tables with glob syntax for db push command.
75
+ * It’s useful when you have only one database avaialable for several separate projects with separate sql schemas.
76
+ *
77
+ * How to define multi-project tables with Drizzle ORM — see https://orm.drizzle.team/docs/goodies#multi-project-schema
78
+ *
79
+ * See https://orm.drizzle.team/kit-docs/config-reference#tablesfilters
80
+ *
81
+ * ---
82
+ *
83
+ * `schemaFilter` - parameter allows you to define which schema in PostgreSQL should be used for either introspect or push commands.
84
+ * This parameter accepts a single schema as a string or an array of schemas as strings.
85
+ * No glob pattern is supported here. By default, drizzle will use the public schema for both commands,
86
+ * but you can add any schema you need.
87
+ *
88
+ * For example, having schemaFilter: ["my_schema"] will only look for tables in both the database and
89
+ * drizzle schema that are a part of the my_schema schema.
90
+ *
91
+ * See https://orm.drizzle.team/kit-docs/config-reference#schemafilter
92
+ *
93
+ * ---
94
+ *
95
+ * `verbose` - command is used for drizzle-kit push commands and prints all statements that will be executed.
96
+ *
97
+ * > Note: This command will only print the statements that should be executed.
98
+ * To approve them before applying, please refer to the `strict` command.
99
+ *
100
+ * See https://orm.drizzle.team/kit-docs/config-reference#verbose
101
+ *
102
+ * ---
103
+ *
104
+ * `strict` - command is used for drizzle-kit push commands and will always ask for your confirmation,
105
+ * either to execute all statements needed to sync your schema with the database or not.
106
+ *
107
+ * See https://orm.drizzle.team/kit-docs/config-reference#strict
108
+ */
109
+ export type Config =
110
+ & {
111
+ dialect: Dialect;
112
+ out?: string;
113
+ breakpoints?: boolean;
114
+ tablesFilter?: string | string[];
115
+ extensionsFilters?: 'postgis'[];
116
+ schemaFilter?: string | string[];
117
+ schema?: string | string[];
118
+ verbose?: boolean;
119
+ strict?: boolean;
120
+ casing?: 'camelCase' | 'snake_case';
121
+ migrations?: {
122
+ table?: string;
123
+ schema?: string;
124
+ prefix?: Prefix;
125
+ };
126
+ introspect?: {
127
+ casing: 'camel' | 'preserve';
128
+ };
129
+ entities?: {
130
+ roles?: boolean | { provider?: 'supabase' | 'neon' | string & {}; exclude?: string[]; include?: string[] };
131
+ };
132
+ }
133
+ & (
134
+ | {
135
+ dialect: Verify<Dialect, 'turso'>;
136
+ dbCredentials: {
137
+ url: string;
138
+ authToken?: string;
139
+ };
140
+ }
141
+ | {
142
+ dialect: Verify<Dialect, 'sqlite'>;
143
+ dbCredentials: {
144
+ url: string;
145
+ };
146
+ }
147
+ | {
148
+ dialect: Verify<Dialect, 'postgresql'>;
149
+ dbCredentials:
150
+ | ({
151
+ host: string;
152
+ port?: number;
153
+ user?: string;
154
+ password?: string;
155
+ database: string;
156
+ ssl?:
157
+ | boolean
158
+ | 'require'
159
+ | 'allow'
160
+ | 'prefer'
161
+ | 'verify-full'
162
+ | ConnectionOptions;
163
+ } & {})
164
+ | {
165
+ url: string;
166
+ };
167
+ }
168
+ | {
169
+ dialect: Verify<Dialect, 'postgresql'>;
170
+ driver: Verify<Driver, 'aws-data-api'>;
171
+ dbCredentials: {
172
+ database: string;
173
+ secretArn: string;
174
+ resourceArn: string;
175
+ };
176
+ }
177
+ | {
178
+ dialect: Verify<Dialect, 'postgresql'>;
179
+ driver: Verify<Driver, 'pglite'>;
180
+ dbCredentials: {
181
+ url: string;
182
+ };
183
+ }
184
+ | {
185
+ dialect: Verify<Dialect, 'mysql'>;
186
+ dbCredentials:
187
+ | {
188
+ host: string;
189
+ port?: number;
190
+ user?: string;
191
+ password?: string;
192
+ database: string;
193
+ ssl?: string | SslOptions;
194
+ }
195
+ | {
196
+ url: string;
197
+ };
198
+ }
199
+ | {
200
+ dialect: Verify<Dialect, 'sqlite'>;
201
+ driver: Verify<Driver, 'd1-http'>;
202
+ dbCredentials: {
203
+ accountId: string;
204
+ databaseId: string;
205
+ token: string;
206
+ };
207
+ }
208
+ | {
209
+ dialect: Verify<Dialect, 'sqlite'>;
210
+ driver: Verify<Driver, 'expo'>;
211
+ }
212
+ | {
213
+ dialect: Verify<Dialect, 'sqlite'>;
214
+ driver: Verify<Driver, 'durable-sqlite'>;
215
+ }
216
+ | {}
217
+ | {
218
+ dialect: Verify<Dialect, 'singlestore'>;
219
+ dbCredentials:
220
+ | {
221
+ host: string;
222
+ port?: number;
223
+ user?: string;
224
+ password?: string;
225
+ database: string;
226
+ ssl?: string | SslOptions;
227
+ }
228
+ | {
229
+ url: string;
230
+ };
231
+ }
232
+ );
233
+
234
+ /**
235
+ * **You are currently using version 0.21.0+ of drizzle-kit. If you have just upgraded to this version, please make sure to read the changelog to understand what changes have been made and what
236
+ * adjustments may be necessary for you. See https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210**
237
+ *
238
+ * **Config** usage:
239
+ *
240
+ * `dialect` - mandatory and is responsible for explicitly providing a databse dialect you are using for all the commands
241
+ * *Possible values*: `postgresql`, `mysql`, `sqlite`, `singlestore`
242
+ *
243
+ * See https://orm.drizzle.team/kit-docs/config-reference#dialect
244
+ *
245
+ * ---
246
+ * `schema` - param lets you define where your schema file/files live.
247
+ * You can have as many separate schema files as you want and define paths to them using glob or array of globs syntax.
248
+ *
249
+ * See https://orm.drizzle.team/kit-docs/config-reference#schema
250
+ *
251
+ * ---
252
+ * `out` - allows you to define the folder for your migrations and a folder, where drizzle will introspect the schema and relations
253
+ *
254
+ * See https://orm.drizzle.team/kit-docs/config-reference#out
255
+ *
256
+ * ---
257
+ * `driver` - optional param that is responsible for explicitly providing a driver to use when accessing a database
258
+ * *Possible values*: `aws-data-api`, `d1-http`, `expo`, `turso`, `pglite`
259
+ * If you don't use AWS Data API, D1, Turso or Expo - ypu don't need this driver. You can check a driver strategy choice here: https://orm.drizzle.team/kit-docs/upgrade-21
260
+ *
261
+ * See https://orm.drizzle.team/kit-docs/config-reference#driver
262
+ *
263
+ * ---
264
+ *
265
+ * `dbCredentials` - an object to define your connection to the database. For more info please check the docs
266
+ *
267
+ * See https://orm.drizzle.team/kit-docs/config-reference#dbcredentials
268
+ *
269
+ * ---
270
+ *
271
+ * `migrations` - param let’s use specify custom table and schema(PostgreSQL only) for migrations.
272
+ * By default, all information about executed migrations will be stored in the database inside
273
+ * the `__drizzle_migrations` table, and for PostgreSQL, inside the drizzle schema.
274
+ * However, you can configure where to store those records.
275
+ *
276
+ * See https://orm.drizzle.team/kit-docs/config-reference#migrations
277
+ *
278
+ * ---
279
+ *
280
+ * `breakpoints` - param lets you enable/disable SQL statement breakpoints in generated migrations.
281
+ * It’s optional and true by default, it’s necessary to properly apply migrations on databases,
282
+ * that do not support multiple DDL alternation statements in one transaction(MySQL, SQLite, SingleStore) and
283
+ * Drizzle ORM has to apply them sequentially one by one.
284
+ *
285
+ * See https://orm.drizzle.team/kit-docs/config-reference#breakpoints
286
+ *
287
+ * ---
288
+ *
289
+ * `tablesFilters` - param lets you filter tables with glob syntax for db push command.
290
+ * It’s useful when you have only one database avaialable for several separate projects with separate sql schemas.
291
+ *
292
+ * How to define multi-project tables with Drizzle ORM — see https://orm.drizzle.team/docs/goodies#multi-project-schema
293
+ *
294
+ * See https://orm.drizzle.team/kit-docs/config-reference#tablesfilters
295
+ *
296
+ * ---
297
+ *
298
+ * `schemaFilter` - parameter allows you to define which schema in PostgreSQL should be used for either introspect or push commands.
299
+ * This parameter accepts a single schema as a string or an array of schemas as strings.
300
+ * No glob pattern is supported here. By default, drizzle will use the public schema for both commands,
301
+ * but you can add any schema you need.
302
+ *
303
+ * For example, having schemaFilter: ["my_schema"] will only look for tables in both the database and
304
+ * drizzle schema that are a part of the my_schema schema.
305
+ *
306
+ * See https://orm.drizzle.team/kit-docs/config-reference#schemafilter
307
+ *
308
+ * ---
309
+ *
310
+ * `verbose` - command is used for drizzle-kit push commands and prints all statements that will be executed.
311
+ *
312
+ * > Note: This command will only print the statements that should be executed.
313
+ * To approve them before applying, please refer to the `strict` command.
314
+ *
315
+ * See https://orm.drizzle.team/kit-docs/config-reference#verbose
316
+ *
317
+ * ---
318
+ *
319
+ * `strict` - command is used for drizzle-kit push commands and will always ask for your confirmation,
320
+ * either to execute all statements needed to sync your schema with the database or not.
321
+ *
322
+ * See https://orm.drizzle.team/kit-docs/config-reference#strict
323
+ */
324
+ export function defineConfig(config: Config) {
325
+ return config;
326
+ }