@voltro/database 0.82.0 → 0.83.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 +286 -0
- package/dist/index.d.ts +31 -11
- package/dist/index.js +634 -633
- package/dist/{replaceInProgress-BbN7p1Q-.js → replaceInProgress-CncEA_Sx.js} +386 -337
- package/dist/sql.d.ts +11 -0
- package/dist/sql.js +904 -862
- package/package.json +2 -2
package/dist/sql.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ConfigError } from 'effect';
|
|
2
2
|
import { Effect } from 'effect';
|
|
3
|
+
import { Fragment } from '@effect/sql/Statement';
|
|
3
4
|
import { Layer } from 'effect';
|
|
4
5
|
import { Schema } from 'effect';
|
|
5
6
|
import { SqlClient } from '@effect/sql';
|
|
@@ -2497,6 +2498,9 @@ export declare const describeOutcome: (outcome: BootMigrationOutcome, dialectId:
|
|
|
2497
2498
|
/** `bf_links`, `bf_links.ticket_key` — the spelling a message uses. */
|
|
2498
2499
|
export declare const describeProbe: (probe: SchemaProbe) => string;
|
|
2499
2500
|
|
|
2501
|
+
/** A row whose `fingerprint` describes the schema — every newest-row reader filters by this. */
|
|
2502
|
+
export declare const describesSchema: (sql: SqlClient.SqlClient) => Fragment;
|
|
2503
|
+
|
|
2500
2504
|
/** One line per finding, for the CLI and the doctor. */
|
|
2501
2505
|
export declare const describeStoreCharsetFinding: (f: StoreCharsetFinding) => string;
|
|
2502
2506
|
|
|
@@ -3627,6 +3631,9 @@ export declare const isAlreadySatisfied: (err: unknown, rules: ReadonlyArray<Alr
|
|
|
3627
3631
|
/** Type-guard for the discovery walker. */
|
|
3628
3632
|
export declare const isFileMigration: (value: unknown) => value is FileMigration;
|
|
3629
3633
|
|
|
3634
|
+
/** A `migrations/<id>.ts` row: its `fingerprint` is the body hash. */
|
|
3635
|
+
export declare const isFileMigrationRow: (sql: SqlClient.SqlClient) => Fragment;
|
|
3636
|
+
|
|
3630
3637
|
export declare const isMysqlCharset: (value: unknown) => value is MysqlCharset;
|
|
3631
3638
|
|
|
3632
3639
|
/** Type guard — narrows an unknown value to a {@link RawSqlFragment}. */
|
|
@@ -4905,6 +4912,8 @@ declare interface QueryDescriptor<R = Row> {
|
|
|
4905
4912
|
readonly joins?: ReadonlyArray<{
|
|
4906
4913
|
readonly kind: 'inner' | 'left';
|
|
4907
4914
|
readonly table: string;
|
|
4915
|
+
/** Declared shape for typed joins; name-only joins use the table registry. */
|
|
4916
|
+
readonly sourceTable?: TableLike;
|
|
4908
4917
|
readonly alias: string;
|
|
4909
4918
|
readonly on: Predicate;
|
|
4910
4919
|
}>;
|
|
@@ -5193,6 +5202,8 @@ declare interface QueryDescriptor_2<R = Row_2> {
|
|
|
5193
5202
|
readonly joins?: ReadonlyArray<{
|
|
5194
5203
|
readonly kind: 'inner' | 'left';
|
|
5195
5204
|
readonly table: string;
|
|
5205
|
+
/** Declared shape for typed joins; name-only joins use the table registry. */
|
|
5206
|
+
readonly sourceTable?: TableLike_2;
|
|
5196
5207
|
readonly alias: string;
|
|
5197
5208
|
readonly on: Predicate_2;
|
|
5198
5209
|
}>;
|