@mrnafisia/type-query 1.0.13 → 1.0.16

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/dist/schema.d.ts CHANGED
@@ -1,26 +1,26 @@
1
- import type { ClientBase } from 'pg';
2
- import type Table from './types/table';
3
- import { type Result } from 'never-catch';
4
- declare const createTables: (client: ClientBase, tables: Table[], resolve?: boolean) => Promise<Result<undefined, string | {
5
- db: unknown;
6
- query: string;
7
- }>>;
8
- declare const dropTables: (client: ClientBase, tables: Table[], resolve?: boolean) => Promise<Result<undefined, string | {
9
- db: unknown;
10
- query: string;
11
- }>>;
12
- declare const resolveTablesDependency: (tables: Table[]) => Result<Table[], string>;
13
- declare const getAllTablesAndDependencies: (tables: Table[]) => Result<[Table[], {
14
- parent: Table;
15
- child: Table;
16
- }[]], string>;
17
- declare const createSequencesSQL: (table: Table) => string[];
18
- declare const dropSequencesSQL: (table: Table) => string[];
19
- declare const createTableSQL: (table: Table) => string;
20
- declare const dropTableSQL: (table: Table) => string;
21
- declare const getSequenceName: (tableTitle: string, columnKey: string, column: {
22
- title?: string;
23
- seqTitle?: string;
24
- }) => string;
25
- export { createTables, dropTables, resolveTablesDependency, getAllTablesAndDependencies, createSequencesSQL, dropSequencesSQL, createTableSQL, dropTableSQL, getSequenceName };
1
+ import type { ClientBase } from 'pg';
2
+ import type Table from './types/table';
3
+ import { type Result } from 'never-catch';
4
+ declare const createTables: (client: ClientBase, tables: Table[], resolve?: boolean) => Promise<Result<undefined, string | {
5
+ db: unknown;
6
+ query: string;
7
+ }>>;
8
+ declare const dropTables: (client: ClientBase, tables: Table[], resolve?: boolean) => Promise<Result<undefined, string | {
9
+ db: unknown;
10
+ query: string;
11
+ }>>;
12
+ declare const resolveTablesDependency: (tables: Table[]) => Result<Table[], string>;
13
+ declare const getAllTablesAndDependencies: (tables: Table[]) => Result<[Table[], {
14
+ parent: Table;
15
+ child: Table;
16
+ }[]], string>;
17
+ declare const createSequencesSQL: (table: Table) => string[];
18
+ declare const dropSequencesSQL: (table: Table) => string[];
19
+ declare const createTableSQL: (table: Table) => string;
20
+ declare const dropTableSQL: (table: Table) => string;
21
+ declare const getSequenceName: (tableTitle: string, columnKey: string, column: {
22
+ title?: string;
23
+ seqTitle?: string;
24
+ }) => string;
25
+ export { createTables, dropTables, resolveTablesDependency, getAllTablesAndDependencies, createSequencesSQL, dropSequencesSQL, createTableSQL, dropTableSQL, getSequenceName };
26
26
  //# sourceMappingURL=schema.d.ts.map