tablinum 0.6.4 → 0.7.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.
@@ -20,4 +20,5 @@ export interface TablinumConfig<S extends SchemaConfig> {
20
20
  }) => void) | undefined;
21
21
  readonly onMembersChanged?: (() => void) | undefined;
22
22
  }
23
+ export declare function deleteDatabase(dbName?: string): Effect.Effect<void, StorageError>;
23
24
  export declare function createTablinum<S extends SchemaConfig>(config: TablinumConfig<S>): Effect.Effect<DatabaseHandle<S>, ValidationError | StorageError | CryptoError, Scope.Scope>;
@@ -14,6 +14,8 @@ export interface DatabaseHandle<S extends SchemaConfig> {
14
14
  readonly exportKey: () => string;
15
15
  readonly exportInvite: () => Invite;
16
16
  readonly close: () => Effect.Effect<void, StorageError>;
17
+ readonly destroy: () => Effect.Effect<void, StorageError>;
18
+ readonly leave: () => Effect.Effect<void, StorageError | SyncError | RelayError | CryptoError>;
17
19
  readonly rebuild: () => Effect.Effect<void, StorageError>;
18
20
  readonly sync: () => Effect.Effect<void, SyncError | RelayError | CryptoError | StorageError>;
19
21
  readonly getSyncStatus: () => Effect.Effect<SyncStatus>;
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export { collection } from "./schema/collection.ts";
3
3
  export type { CollectionDef, CollectionFields } from "./schema/collection.ts";
4
4
  export type { FieldDef, FieldKind } from "./schema/field.ts";
5
5
  export type { InferRecord, SchemaConfig } from "./schema/types.ts";
6
- export { createTablinum } from "./db/create-tablinum.ts";
6
+ export { createTablinum, deleteDatabase } from "./db/create-tablinum.ts";
7
7
  export type { TablinumConfig, TablinumLogLevel } from "./db/create-tablinum.ts";
8
8
  export { LogLevel } from "effect";
9
9
  export type { DatabaseHandle, SyncStatus } from "./db/database-handle.ts";