@immich/sql-tools 0.1.1 → 0.1.2
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/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -202,7 +202,7 @@ export declare type DatabaseIndex = {
|
|
|
202
202
|
synchronize: boolean;
|
|
203
203
|
};
|
|
204
204
|
|
|
205
|
-
export declare type DatabaseLike = Sql | Kysely<
|
|
205
|
+
export declare type DatabaseLike<T> = Sql | Kysely<T>;
|
|
206
206
|
|
|
207
207
|
export declare type DatabaseOptions = {
|
|
208
208
|
name?: string;
|
|
@@ -895,7 +895,7 @@ export declare type SchemaFromCodeOptions = BaseContextOptions & {
|
|
|
895
895
|
/**
|
|
896
896
|
* Load schema from a database url
|
|
897
897
|
*/
|
|
898
|
-
export declare const schemaFromDatabase: (database: DatabaseLike
|
|
898
|
+
export declare const schemaFromDatabase: <T>(database: DatabaseLike<T>, options?: SchemaFromDatabaseOptions) => Promise<DatabaseSchema>;
|
|
899
899
|
|
|
900
900
|
export declare type SchemaFromDatabaseOptions = BaseContextOptions;
|
|
901
901
|
|