@voltro/database 0.26.0 → 0.27.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 +297 -0
- package/dist/{frameworkLiveTables-BQwB8K6R.js → frameworkLiveTables-CS_Hyhgz.js} +162 -147
- package/dist/index.d.ts +28 -0
- package/dist/index.js +635 -642
- package/dist/sql.d.ts +27 -0
- package/dist/sql.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -4820,6 +4820,20 @@ export declare interface SchemaTable extends TableLike {
|
|
|
4820
4820
|
readonly tableName: string;
|
|
4821
4821
|
readonly fields: Record<string, ColumnDefinition<unknown>>;
|
|
4822
4822
|
readonly appliedIndexes: ReadonlyArray<TableIndex>;
|
|
4823
|
+
/**
|
|
4824
|
+
* The plugin references DECLARED on this table, surviving `table()`.
|
|
4825
|
+
*
|
|
4826
|
+
* `pluginRefSpecOf` reads a column BUILDER, and materialisation replaces it
|
|
4827
|
+
* with a plain field descriptor — so without this the declaration is
|
|
4828
|
+
* unreadable the moment the table exists, and any tool deriving structure
|
|
4829
|
+
* from the schema sees an ordinary `text()` column.
|
|
4830
|
+
*/
|
|
4831
|
+
readonly appliedPluginRefs?: ReadonlyArray<{
|
|
4832
|
+
readonly column: string;
|
|
4833
|
+
readonly target: () => unknown;
|
|
4834
|
+
readonly orphanPolicy: PluginRefOrphanPolicy;
|
|
4835
|
+
readonly onSoftDelete: boolean;
|
|
4836
|
+
}>;
|
|
4823
4837
|
/**
|
|
4824
4838
|
* Declared full-text indexes. Carried so a `SchemaTable`-annotated table
|
|
4825
4839
|
* is still a valid `queryFor(...)` input (the builder reads this to let
|
|
@@ -5247,6 +5261,20 @@ export declare interface Table<Name extends string, Fields extends Record<string
|
|
|
5247
5261
|
readonly isReactive: Reactive;
|
|
5248
5262
|
readonly appliedMixins: ReadonlyArray<AnyMixin>;
|
|
5249
5263
|
readonly appliedIndexes: ReadonlyArray<TableIndex>;
|
|
5264
|
+
/**
|
|
5265
|
+
* The plugin references DECLARED on this table, surviving `table()`.
|
|
5266
|
+
*
|
|
5267
|
+
* `pluginRefSpecOf` reads a column BUILDER, and materialisation replaces it
|
|
5268
|
+
* with a plain field descriptor — so without this the declaration is
|
|
5269
|
+
* unreadable the moment the table exists, and any tool deriving structure
|
|
5270
|
+
* from the schema sees an ordinary `text()` column.
|
|
5271
|
+
*/
|
|
5272
|
+
readonly appliedPluginRefs?: ReadonlyArray<{
|
|
5273
|
+
readonly column: string;
|
|
5274
|
+
readonly target: () => unknown;
|
|
5275
|
+
readonly orphanPolicy: PluginRefOrphanPolicy;
|
|
5276
|
+
readonly onSoftDelete: boolean;
|
|
5277
|
+
}>;
|
|
5250
5278
|
readonly appliedUniques: ReadonlyArray<TableUnique>;
|
|
5251
5279
|
readonly appliedFullText: ReadonlyArray<TableFullTextIndex>;
|
|
5252
5280
|
readonly appliedChecks: ReadonlyArray<TableCheck>;
|