peta-orm 0.1.4 → 0.2.0

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.
@@ -0,0 +1,2 @@
1
+ export declare function run(): Promise<void>;
2
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/migrations/cli.ts"],"names":[],"mappings":"AAQA,wBAAsB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CA0FzC"}
@@ -0,0 +1,5 @@
1
+ import type { MigrationFile, PetaMigrateConfig, ResolvedConfig } from "./types";
2
+ export declare function defineConfig(config: PetaMigrateConfig): PetaMigrateConfig;
3
+ export declare function loadConfig(): Promise<ResolvedConfig>;
4
+ export declare function loadMigrationFiles(dir: string): Promise<MigrationFile[]>;
5
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/migrations/config.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE/E,wBAAgB,YAAY,CAAC,MAAM,EAAE,iBAAiB,GAAG,iBAAiB,CAEzE;AAED,wBAAsB,UAAU,IAAI,OAAO,CAAC,cAAc,CAAC,CAqC1D;AAED,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAsB9E"}
@@ -0,0 +1,9 @@
1
+ import type { ModelClass } from "../model/model";
2
+ export interface GeneratorOptions {
3
+ name?: string;
4
+ }
5
+ export declare class MigrationGenerator {
6
+ #private;
7
+ generateInitialMigration(models: Map<string, ModelClass>, options?: GeneratorOptions): string;
8
+ }
9
+ //# sourceMappingURL=generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../src/migrations/generator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEhD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,qBAAa,kBAAkB;;IAC7B,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAE,gBAAqB,GAAG,MAAM;CA0HlG"}
@@ -0,0 +1,5 @@
1
+ export { MigrationRunner } from "./runner";
2
+ export { MigrationGenerator } from "./generator";
3
+ export { defineConfig, loadConfig, loadMigrationFiles } from "./config";
4
+ export type { MigrationFile, MigrationRecord, MigrationStatus, PetaMigrateConfig, ResolvedConfig } from "./types";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AACvE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA"}