@h3ravel/arquebus 0.6.5 → 0.6.7

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 (47) hide show
  1. package/README.md +5 -4
  2. package/package.json +4 -3
  3. package/bin/index.cjs +0 -5964
  4. package/bin/index.d.cts +0 -1
  5. package/bin/index.d.ts +0 -1
  6. package/bin/index.js +0 -5960
  7. package/bin/seeders-8GJzfIIN.js +0 -3
  8. package/bin/seeders-ByeSoCAQ.cjs +0 -131
  9. package/bin/seeders-CltigymO.js +0 -79
  10. package/bin/seeders-_xJ6VGVS.cjs +0 -3
  11. package/dist/browser/index.cjs +0 -1271
  12. package/dist/browser/index.d.cts +0 -4932
  13. package/dist/browser/index.d.ts +0 -4932
  14. package/dist/browser/index.js +0 -1218
  15. package/dist/index.cjs +0 -5750
  16. package/dist/index.d.cts +0 -5129
  17. package/dist/index.d.ts +0 -5129
  18. package/dist/index.js +0 -5679
  19. package/dist/inspector/index.cjs +0 -4961
  20. package/dist/inspector/index.d.cts +0 -83
  21. package/dist/inspector/index.d.ts +0 -83
  22. package/dist/inspector/index.js +0 -4932
  23. package/dist/migrations/chunk-PECeCxCb.js +0 -15
  24. package/dist/migrations/index.cjs +0 -5507
  25. package/dist/migrations/index.d.cts +0 -4965
  26. package/dist/migrations/index.d.ts +0 -4962
  27. package/dist/migrations/index.js +0 -5454
  28. package/dist/migrations/stubs/migration-js.stub +0 -21
  29. package/dist/migrations/stubs/migration-ts.stub +0 -18
  30. package/dist/migrations/stubs/migration.create-js.stub +0 -24
  31. package/dist/migrations/stubs/migration.create-ts.stub +0 -21
  32. package/dist/migrations/stubs/migration.update-js.stub +0 -25
  33. package/dist/migrations/stubs/migration.update-ts.stub +0 -22
  34. package/dist/seeders/index.cjs +0 -141
  35. package/dist/seeders/index.d.cts +0 -4766
  36. package/dist/seeders/index.d.ts +0 -4766
  37. package/dist/seeders/index.js +0 -118
  38. package/dist/seeders/index.ts +0 -3
  39. package/dist/seeders/runner.ts +0 -101
  40. package/dist/seeders/seeder-creator.ts +0 -42
  41. package/dist/seeders/seeder.ts +0 -10
  42. package/dist/stubs/arquebus.config-js.stub +0 -25
  43. package/dist/stubs/arquebus.config-ts.stub +0 -24
  44. package/dist/stubs/model-js.stub +0 -5
  45. package/dist/stubs/model-ts.stub +0 -5
  46. package/dist/stubs/seeder-js.stub +0 -13
  47. package/dist/stubs/seeder-ts.stub +0 -9
@@ -1,83 +0,0 @@
1
- import { Knex } from "knex";
2
-
3
- //#region src/inspector/types/column.d.ts
4
- interface Column {
5
- name: string;
6
- table: string;
7
- data_type: string;
8
- default_value: string | null;
9
- max_length: number | null;
10
- numeric_precision: number | null;
11
- numeric_scale: number | null;
12
- is_nullable: boolean;
13
- is_unique: boolean;
14
- is_primary_key: boolean;
15
- is_generated: boolean;
16
- generation_expression?: string | null;
17
- has_auto_increment: boolean;
18
- foreign_key_table: string | null;
19
- foreign_key_column: string | null;
20
- comment?: string | null;
21
- schema?: string;
22
- foreign_key_schema?: string | null;
23
- collation?: string | null;
24
- }
25
- //#endregion
26
- //#region src/inspector/types/foreign-key.d.ts
27
- type ForeignKey = {
28
- table: string;
29
- column: string;
30
- foreign_key_table: string;
31
- foreign_key_column: string;
32
- foreign_key_schema?: string;
33
- constraint_name: null | string;
34
- on_update: null | 'NO ACTION' | 'RESTRICT' | 'CASCADE' | 'SET NULL' | 'SET DEFAULT';
35
- on_delete: null | 'NO ACTION' | 'RESTRICT' | 'CASCADE' | 'SET NULL' | 'SET DEFAULT';
36
- };
37
- //#endregion
38
- //#region src/inspector/types/table.d.ts
39
- interface Table {
40
- name: string;
41
- comment?: string | null;
42
- schema?: string;
43
- collation?: string;
44
- engine?: string;
45
- owner?: string;
46
- sql?: string;
47
- catalog?: string;
48
- }
49
- //#endregion
50
- //#region src/inspector/types/unique-constraint.d.ts
51
- type UniqueConstraint = {
52
- table: string;
53
- constraint_name: null | string;
54
- columns: string[];
55
- };
56
- //#endregion
57
- //#region src/inspector/types/schema-inspector.d.ts
58
- interface SchemaInspector$1 {
59
- knex: Knex;
60
- tables(): Promise<string[]>;
61
- tableInfo(): Promise<Table[]>;
62
- tableInfo(table: string): Promise<Table>;
63
- hasTable(table: string): Promise<boolean>;
64
- columns(table?: string): Promise<{
65
- table: string;
66
- column: string;
67
- }[]>;
68
- columnInfo(): Promise<Column[]>;
69
- columnInfo(table?: string): Promise<Column[]>;
70
- columnInfo(table: string, column: string): Promise<Column>;
71
- hasColumn(table: string, column: string): Promise<boolean>;
72
- primary(table: string): Promise<string[] | string | null>;
73
- foreignKeys(table?: string): Promise<ForeignKey[]>;
74
- uniqueConstraints?(table?: string): Promise<UniqueConstraint[]>;
75
- withSchema?(schema: string): void;
76
- }
77
- //#endregion
78
- //#region src/inspector/index.d.ts
79
- declare class SchemaInspector {
80
- static inspect(knex: Knex): SchemaInspector$1;
81
- }
82
- //#endregion
83
- export { SchemaInspector };
@@ -1,83 +0,0 @@
1
- import { Knex } from "knex";
2
-
3
- //#region src/inspector/types/column.d.ts
4
- interface Column {
5
- name: string;
6
- table: string;
7
- data_type: string;
8
- default_value: string | null;
9
- max_length: number | null;
10
- numeric_precision: number | null;
11
- numeric_scale: number | null;
12
- is_nullable: boolean;
13
- is_unique: boolean;
14
- is_primary_key: boolean;
15
- is_generated: boolean;
16
- generation_expression?: string | null;
17
- has_auto_increment: boolean;
18
- foreign_key_table: string | null;
19
- foreign_key_column: string | null;
20
- comment?: string | null;
21
- schema?: string;
22
- foreign_key_schema?: string | null;
23
- collation?: string | null;
24
- }
25
- //#endregion
26
- //#region src/inspector/types/foreign-key.d.ts
27
- type ForeignKey = {
28
- table: string;
29
- column: string;
30
- foreign_key_table: string;
31
- foreign_key_column: string;
32
- foreign_key_schema?: string;
33
- constraint_name: null | string;
34
- on_update: null | 'NO ACTION' | 'RESTRICT' | 'CASCADE' | 'SET NULL' | 'SET DEFAULT';
35
- on_delete: null | 'NO ACTION' | 'RESTRICT' | 'CASCADE' | 'SET NULL' | 'SET DEFAULT';
36
- };
37
- //#endregion
38
- //#region src/inspector/types/table.d.ts
39
- interface Table {
40
- name: string;
41
- comment?: string | null;
42
- schema?: string;
43
- collation?: string;
44
- engine?: string;
45
- owner?: string;
46
- sql?: string;
47
- catalog?: string;
48
- }
49
- //#endregion
50
- //#region src/inspector/types/unique-constraint.d.ts
51
- type UniqueConstraint = {
52
- table: string;
53
- constraint_name: null | string;
54
- columns: string[];
55
- };
56
- //#endregion
57
- //#region src/inspector/types/schema-inspector.d.ts
58
- interface SchemaInspector$1 {
59
- knex: Knex;
60
- tables(): Promise<string[]>;
61
- tableInfo(): Promise<Table[]>;
62
- tableInfo(table: string): Promise<Table>;
63
- hasTable(table: string): Promise<boolean>;
64
- columns(table?: string): Promise<{
65
- table: string;
66
- column: string;
67
- }[]>;
68
- columnInfo(): Promise<Column[]>;
69
- columnInfo(table?: string): Promise<Column[]>;
70
- columnInfo(table: string, column: string): Promise<Column>;
71
- hasColumn(table: string, column: string): Promise<boolean>;
72
- primary(table: string): Promise<string[] | string | null>;
73
- foreignKeys(table?: string): Promise<ForeignKey[]>;
74
- uniqueConstraints?(table?: string): Promise<UniqueConstraint[]>;
75
- withSchema?(schema: string): void;
76
- }
77
- //#endregion
78
- //#region src/inspector/index.d.ts
79
- declare class SchemaInspector {
80
- static inspect(knex: Knex): SchemaInspector$1;
81
- }
82
- //#endregion
83
- export { SchemaInspector };