@voltro/database 0.75.0 → 0.76.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.
- package/CHANGELOG.md +404 -0
- package/dist/{frameworkTables-CfWuWeFG.js → frameworkTables-CSY95jCs.js} +679 -429
- package/dist/index.d.ts +2 -0
- package/dist/index.js +644 -891
- package/dist/sql.d.ts +11 -0
- package/dist/sql.js +1225 -1196
- package/package.json +3 -3
package/dist/sql.d.ts
CHANGED
|
@@ -3953,6 +3953,13 @@ export declare interface PlanInput {
|
|
|
3953
3953
|
*/
|
|
3954
3954
|
export declare const planMigrations: (input: PlanInput) => MigrationPlan;
|
|
3955
3955
|
|
|
3956
|
+
/** Tables whose shape the app migration planner owns. Runtime-owned tables
|
|
3957
|
+
* remain visible when explicitly declared; unrelated app tables stay visible
|
|
3958
|
+
* so unexpected additions are still detected. */
|
|
3959
|
+
export declare const plannableLiveTables: <T extends {
|
|
3960
|
+
readonly name: string;
|
|
3961
|
+
}>(tables: ReadonlyArray<T>, declaredNames: ReadonlySet<string>) => ReadonlyArray<T>;
|
|
3962
|
+
|
|
3956
3963
|
/**
|
|
3957
3964
|
* One row in a `MigrationPlan` — a concrete operation paired with the
|
|
3958
3965
|
* planner's classification + any blocking reason.
|
|
@@ -4793,6 +4800,8 @@ export declare const recordUpToDate: (sql: SqlClient.SqlClient, plan: MigrationP
|
|
|
4793
4800
|
readonly source: string;
|
|
4794
4801
|
}) => Effect.Effect<"recorded" | "already-current", never>;
|
|
4795
4802
|
|
|
4803
|
+
/* Excluded from this release type: registerSqlPoolCapacity */
|
|
4804
|
+
|
|
4796
4805
|
export declare type RehearsalOutcome =
|
|
4797
4806
|
/** The plan applied on the branch and the re-plan was empty. Nothing lossy. */
|
|
4798
4807
|
'clean'
|
|
@@ -4848,6 +4857,8 @@ export declare interface RewriteOptions extends EachOptions {
|
|
|
4848
4857
|
* addition to the columns the patch itself changes. A JSON column cannot be
|
|
4849
4858
|
* compared by value on every dialect, so a rewrite of one guards on what
|
|
4850
4859
|
* you name here — an `updatedAt`, a `version` — rather than on the document.
|
|
4860
|
+
* Temporal comparisons retain the database's full precision, even though
|
|
4861
|
+
* the callback's Date values only represent milliseconds.
|
|
4851
4862
|
*/
|
|
4852
4863
|
readonly guard?: ReadonlyArray<string>;
|
|
4853
4864
|
/**
|