@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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -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<unknown>;
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, options?: SchemaFromDatabaseOptions) => Promise<DatabaseSchema>;
898
+ export declare const schemaFromDatabase: <T>(database: DatabaseLike<T>, options?: SchemaFromDatabaseOptions) => Promise<DatabaseSchema>;
899
899
 
900
900
  export declare type SchemaFromDatabaseOptions = BaseContextOptions;
901
901
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@immich/sql-tools",
3
3
  "description": "Kysely-based tools and utilities for managing postgres schema",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",