@crvouga/mockingbird-service-postgres 3.11.0 → 3.12.1
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 +13 -0
- package/README.md +89 -1
- package/dist/admin.js +708 -82
- package/dist/admin.js.map +4 -4
- package/dist/api/buffered.d.ts +7 -0
- package/dist/api/durable.d.ts +12 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1985 -287
- package/dist/index.js.map +4 -4
- package/dist/indexes/index.d.ts +7 -0
- package/dist/indexes/maintain.d.ts +2 -0
- package/dist/planner/access.d.ts +15 -0
- package/dist/serialization/wire.d.ts +4 -0
- package/dist/server.js +772 -113
- package/dist/server.js.map +4 -4
- package/dist/shared/core/durability-browser.d.ts +52 -0
- package/dist/shared/core/durability-buffered.d.ts +65 -0
- package/dist/shared/core/durability.d.ts +78 -0
- package/dist/shared/core/fork-map.d.ts +51 -0
- package/dist/shared/core/index.d.ts +4 -0
- package/dist/shared/core/mount.d.ts +17 -0
- package/dist/shared/core/timeline.d.ts +80 -0
- package/dist/storage/database-state.d.ts +23 -0
- package/dist/unstable.js +647 -58
- package/dist/unstable.js.map +4 -4
- package/dist/wire/cli.js +773 -114
- package/dist/wire/cli.js.map +4 -4
- package/dist/wire/index.js +772 -113
- package/dist/wire/index.js.map +4 -4
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type BufferedDurabilityOptions, type BufferedDurable } from "../shared/core/index.js";
|
|
2
|
+
import { Database, type DatabaseOptions } from "./database.js";
|
|
3
|
+
import type { DurableDatabaseOptions } from "./durable.js";
|
|
4
|
+
export interface BufferedDurableDatabaseOptions extends DurableDatabaseOptions, BufferedDurabilityOptions {
|
|
5
|
+
}
|
|
6
|
+
export declare function decodeBufferedDatabase(bytes: Uint8Array, options?: DatabaseOptions): Database;
|
|
7
|
+
export declare function openBufferedDurableDatabase(options: BufferedDurableDatabaseOptions): Promise<BufferedDurable<Database>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type DurabilityBackend, type Durable } from "../shared/core/index.js";
|
|
2
|
+
import { Database, type DatabaseOptions } from "./database.js";
|
|
3
|
+
export interface DurableDatabaseOptions {
|
|
4
|
+
/** Independent saved image within the backend. */
|
|
5
|
+
key: string;
|
|
6
|
+
/** Defaults to IndexedDB. Inject any implementation of the shared binary image port. */
|
|
7
|
+
backend?: DurabilityBackend;
|
|
8
|
+
databaseOptions?: DatabaseOptions;
|
|
9
|
+
pageSize?: number;
|
|
10
|
+
}
|
|
11
|
+
/** Open a browser-persisted database without changing the synchronous Database API. */
|
|
12
|
+
export declare function openDurableDatabase(options: DurableDatabaseOptions): Promise<Durable<Database>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -22,8 +22,11 @@
|
|
|
22
22
|
* @module
|
|
23
23
|
*/
|
|
24
24
|
import "./serialization/codec.js";
|
|
25
|
+
export { type BufferedDurabilityObserver, type BufferedDurabilityOptions, type BufferedDurable, browserDurabilityLifecycle, type DurabilityBackend, type DurabilityCodec, DurabilityConflictError, type DurabilityLifecycle, type DurabilityScheduler, type Durable, type DurableImage, type DurableOptions, type DurablePatch, encodeDurableCheckpoint, type IncrementalCapture, type IncrementalDurabilityCodec, IndexedDBDurabilityBackend, type IndexedDBDurabilityOptions, LocalStorageDurabilityBackend, type LocalStorageDurabilityOptions, MemoryDurabilityBackend, openBufferedDurable, openDurable, packDurableRecord, readDurableJournal, unpackDurableRecord, withDurability, } from "./shared/core/index.js";
|
|
25
26
|
export type { BindValue, JsValue, QueryRow } from "./api/bind.js";
|
|
27
|
+
export { type BufferedDurableDatabaseOptions, openBufferedDurableDatabase } from "./api/buffered.js";
|
|
26
28
|
export { Database, type DatabaseFaults, type DatabaseHistory, type DatabaseOptions, type HistoryCheckpoint, type QueryOptions, type RegisterFunctionOptions, Snapshot, } from "./api/database.js";
|
|
29
|
+
export { type DurableDatabaseOptions, openDurableDatabase } from "./api/durable.js";
|
|
30
|
+
export { analyzeSchema, type SchemaDiagnostic, type SchemaReport, type SchemaReportOptions, } from "./api/schema-report.js";
|
|
27
31
|
export { type ResultSet, type RunResult, Statement } from "./api/statement.js";
|
|
28
32
|
export { type ErrorCategory, PostgresError } from "./errors/error.js";
|
|
29
|
-
export { analyzeSchema, type SchemaReport, type SchemaReportOptions, type SchemaDiagnostic, } from "./api/schema-report.js";
|