akanjs 3.2.0 → 3.2.1-rc.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/document/dataLoader.ts +55 -25
- package/package.json +1 -1
- package/server/akanApp.ts +13 -2
- package/server/akanServer.ts +4 -0
- package/server/contentEncoding.ts +39 -9
- package/server/flightSanitizeRecorded.fixture.json +545 -0
- package/server/gateway/gatewayHttpProxy.ts +2 -2
- package/server/hmr/devBaseArtifact.ts +40 -0
- package/server/htmlResultCache.ts +11 -10
- package/server/routing/routeHosts.ts +4 -0
- package/server/rscFlightStream.ts +34 -2
- package/server/rscHostRequests.ts +27 -2
- package/server/rscRenderControl.ts +2 -0
- package/server/rscRenderHandler.ts +17 -18
- package/server/rscRenderManifest.ts +13 -0
- package/server/rscResultCaches.ts +2 -2
- package/server/rscWorker.tsx +14 -2
- package/server/rscWorkerCache.ts +13 -15
- package/server/rscWorkerHost.ts +3 -0
- package/service/predefinedAdaptor/solidCache.adaptor.ts +57 -15
- package/service/predefinedAdaptor/sql/AggregateQuery.ts +66 -0
- package/service/predefinedAdaptor/sql/BoundList.ts +34 -0
- package/service/predefinedAdaptor/sql/QueryCompiler.ts +27 -4
- package/service/predefinedAdaptor/sql/QueryScope.ts +41 -7
- package/service/predefinedAdaptor/sql/RawDocumentTable.ts +7 -1
- package/service/predefinedAdaptor/sql/SqlDocumentStore.ts +45 -42
- package/service/predefinedAdaptor/sql/SqlTableSchema.ts +2 -2
- package/service/predefinedAdaptor/sql/types.ts +2 -0
- package/types/document/dataLoader.d.ts +1 -0
- package/types/server/contentEncoding.d.ts +3 -2
- package/types/server/gateway/gatewayHttpProxy.d.ts +1 -0
- package/types/server/hmr/devBaseArtifact.d.ts +10 -0
- package/types/server/htmlResultCache.d.ts +3 -2
- package/types/server/logging/rotatingLogWriter.d.ts +1 -1
- package/types/server/routing/routeHosts.d.ts +1 -0
- package/types/server/rscHostRequests.d.ts +1 -0
- package/types/server/rscRenderControl.d.ts +2 -0
- package/types/server/rscRenderManifest.d.ts +5 -0
- package/types/server/rscWorkerCache.d.ts +4 -5
- package/types/service/predefinedAdaptor/sql/AggregateQuery.d.ts +16 -0
- package/types/service/predefinedAdaptor/sql/BoundList.d.ts +10 -0
- package/types/service/predefinedAdaptor/sql/QueryCompiler.d.ts +1 -0
- package/types/service/predefinedAdaptor/sql/QueryScope.d.ts +2 -2
- package/types/service/predefinedAdaptor/sql/SqlDocumentStore.d.ts +1 -1
- package/types/service/predefinedAdaptor/sql/SqlTableSchema.d.ts +1 -1
- package/types/service/predefinedAdaptor/sql/types.d.ts +2 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ConstantModel } from "akanjs/constant";
|
|
2
2
|
import { type DatabaseModel, type DocumentQuery, type DocumentSchema, type DocumentScopeOptions, type DocumentTouchOptions, type DocumentUpdateInput, type DocumentUpdateOptions } from "akanjs/document";
|
|
3
3
|
import { QueryCompiler } from "./QueryCompiler.d.ts";
|
|
4
|
-
import {
|
|
4
|
+
import type { DocumentDatabaseOwner, DocumentRecord, DocumentWriteListener, FindIdOptions, FindManyOptions, FindOneOptions, PrunedIndex, SqlDialect, TransferRow, UndeclaredIndex, UpsertByIdOptions, WriteHookOptions } from "./types.d.ts";
|
|
5
5
|
import { UpdateCompiler } from "./UpdateCompiler.d.ts";
|
|
6
6
|
export declare class SqlDocumentStore {
|
|
7
7
|
#private;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Logger } from "akanjs/common";
|
|
2
2
|
import type { ConstantModel } from "akanjs/constant";
|
|
3
3
|
import type { DatabaseModel, DocumentSchema } from "akanjs/document";
|
|
4
|
-
import type
|
|
4
|
+
import { type QueryCompiler } from "./QueryCompiler.d.ts";
|
|
5
5
|
import { type DocumentDatabaseOwner, type PrunedIndex, type SqlDialect, type UndeclaredIndex } from "./types.d.ts";
|
|
6
6
|
export interface SqlTableSchemaOptions {
|
|
7
7
|
owner: DocumentDatabaseOwner;
|
|
@@ -271,6 +271,8 @@ export interface CompileContext {
|
|
|
271
271
|
joins: SearchJoin[];
|
|
272
272
|
memberTests: string[];
|
|
273
273
|
conjunctive: boolean;
|
|
274
|
+
/** Each list value gets its own placeholder, where a query binds the whole list as one. */
|
|
275
|
+
writtenLists: boolean;
|
|
274
276
|
}
|
|
275
277
|
/**
|
|
276
278
|
* `text` for a declared string (`String`, `ID`, a string enum, a relation's id), `json` for the rest, untyped paths
|