@fireproof/core 0.19.8-dev → 0.19.8-dev-alldocs-export
Sign up to get free protection for your applications and to get access to all the features.
- package/{chunk-QHSXUST7.js → chunk-5UFCF36O.js} +3 -3
- package/{chunk-HCXR2M5B.js → chunk-DG6XSV44.js} +175 -7
- package/chunk-DG6XSV44.js.map +1 -0
- package/{chunk-H3A2HMMM.js → chunk-OWQAHX2V.js} +2 -2
- package/chunk-OWQAHX2V.js.map +1 -0
- package/{chunk-7OGPZSGT.js → chunk-PRQHQG4I.js} +2 -2
- package/index.cjs +248 -191
- package/index.cjs.map +1 -1
- package/index.d.cts +174 -68
- package/index.d.ts +174 -68
- package/index.global.js +24688 -0
- package/index.global.js.map +1 -0
- package/index.js +60 -127
- package/index.js.map +1 -1
- package/metafile-cjs.json +1 -1
- package/metafile-esm.json +1 -1
- package/metafile-iife.json +1 -0
- package/{node-sys-container-E7LADX2Z.js → node-sys-container-TTGEC66A.js} +2 -2
- package/package.json +1 -1
- package/{sqlite-data-store-YS4U7AQ4.js → sqlite-data-store-MA55LVQE.js} +4 -4
- package/{sqlite-meta-store-FJZSZG4R.js → sqlite-meta-store-UNQKVYRM.js} +4 -4
- package/{sqlite-wal-store-6JZ4URNS.js → sqlite-wal-store-KVUOC4PO.js} +4 -4
- package/{store-file-HMHPQTUV.js → store-file-WD746RSY.js} +3 -3
- package/{store-indexdb-MRVZG4OG.js → store-indexdb-NG45BU3Q.js} +4 -4
- package/{store-sql-5XMJ5OWJ.js → store-sql-QVFNIGND.js} +7 -69
- package/store-sql-QVFNIGND.js.map +1 -0
- package/tests/blockstore/loader.test.ts +265 -0
- package/tests/blockstore/store.test.ts +164 -0
- package/tests/blockstore/transaction.test.ts +121 -0
- package/tests/fireproof/config.test.ts +212 -0
- package/tests/fireproof/crdt.test.ts +434 -0
- package/tests/fireproof/database.test.ts +466 -0
- package/tests/fireproof/fireproof.test.ts +602 -0
- package/tests/fireproof/hello.test.ts +54 -0
- package/tests/fireproof/indexer.test.ts +389 -0
- package/tests/helpers.ts +81 -0
- package/tests/react/useFireproof.test.tsx +19 -0
- package/tests/www/gallery.html +132 -0
- package/tests/www/iife.html +42 -0
- package/tests/www/todo-aws.html +232 -0
- package/tests/www/todo-ipfs.html +213 -0
- package/tests/www/todo-local.html +214 -0
- package/tests/www/todo-netlify.html +227 -0
- package/tests/www/todo.html +236 -0
- package/chunk-H3A2HMMM.js.map +0 -1
- package/chunk-HCXR2M5B.js.map +0 -1
- package/store-sql-5XMJ5OWJ.js.map +0 -1
- /package/{chunk-QHSXUST7.js.map → chunk-5UFCF36O.js.map} +0 -0
- /package/{chunk-7OGPZSGT.js.map → chunk-PRQHQG4I.js.map} +0 -0
- /package/{node-sys-container-E7LADX2Z.js.map → node-sys-container-TTGEC66A.js.map} +0 -0
- /package/{sqlite-data-store-YS4U7AQ4.js.map → sqlite-data-store-MA55LVQE.js.map} +0 -0
- /package/{sqlite-meta-store-FJZSZG4R.js.map → sqlite-meta-store-UNQKVYRM.js.map} +0 -0
- /package/{sqlite-wal-store-6JZ4URNS.js.map → sqlite-wal-store-KVUOC4PO.js.map} +0 -0
- /package/{store-file-HMHPQTUV.js.map → store-file-WD746RSY.js.map} +0 -0
- /package/{store-indexdb-MRVZG4OG.js.map → store-indexdb-NG45BU3Q.js.map} +0 -0
package/index.d.ts
CHANGED
@@ -10,6 +10,7 @@ import { BlockFetcher as BlockFetcher$1 } from '@web3-storage/pail/api';
|
|
10
10
|
import { ProllyNode as ProllyNode$1 } from 'prolly-trees/db-index';
|
11
11
|
import { EventBlock } from '@web3-storage/pail/clock';
|
12
12
|
import { PathLike, MakeDirectoryOptions, Stats, ObjectEncodingOptions, Dirent } from 'node:fs';
|
13
|
+
import { RunResult } from 'better-sqlite3';
|
13
14
|
|
14
15
|
interface GatewayOpts {
|
15
16
|
readonly gateway: Gateway;
|
@@ -443,78 +444,79 @@ declare class ConnectREST extends ConnectionBase {
|
|
443
444
|
declare function toURL(pathOrUrl: string | URL, isIndex?: string): URL;
|
444
445
|
interface StoreFactoryItem {
|
445
446
|
readonly protocol: string;
|
447
|
+
readonly overrideBaseURL?: string;
|
446
448
|
readonly data: (logger: Logger) => Promise<Gateway>;
|
447
449
|
readonly meta: (logger: Logger) => Promise<Gateway>;
|
448
450
|
readonly wal: (logger: Logger) => Promise<Gateway>;
|
449
451
|
readonly test: (logger: Logger) => Promise<TestStore>;
|
450
452
|
}
|
451
|
-
declare function registerStoreProtocol(item: StoreFactoryItem): void;
|
453
|
+
declare function registerStoreProtocol(item: StoreFactoryItem): () => void;
|
452
454
|
declare function testStoreFactory(url: URL, ilogger?: Logger): Promise<TestStore>;
|
453
455
|
declare function toStoreRuntime(opts: StoreOpts, ilogger: Logger): StoreRuntime;
|
454
456
|
|
455
457
|
declare function parseCarFile<T>(reader: CarReader, logger: Logger): Promise<CarHeader<T>>;
|
456
458
|
|
457
|
-
type index$
|
458
|
-
type index$
|
459
|
-
type index$
|
460
|
-
type index$
|
461
|
-
declare const index$
|
462
|
-
type index$
|
463
|
-
type index$
|
464
|
-
type index$
|
465
|
-
type index$
|
466
|
-
type index$
|
467
|
-
declare const index$
|
468
|
-
type index$
|
469
|
-
type index$
|
470
|
-
declare const index$
|
471
|
-
type index$
|
472
|
-
declare const index$
|
473
|
-
type index$
|
474
|
-
type index$
|
475
|
-
type index$
|
476
|
-
declare const index$
|
477
|
-
type index$
|
478
|
-
type index$
|
479
|
-
type index$
|
480
|
-
declare const index$
|
481
|
-
type index$
|
482
|
-
type index$
|
483
|
-
type index$
|
484
|
-
type index$
|
485
|
-
type index$
|
486
|
-
declare const index$
|
487
|
-
type index$
|
488
|
-
type index$
|
489
|
-
type index$
|
490
|
-
type index$
|
491
|
-
declare const index$
|
492
|
-
type index$
|
493
|
-
declare const index$
|
494
|
-
type index$
|
495
|
-
declare const index$
|
496
|
-
type index$
|
497
|
-
declare const index$
|
498
|
-
type index$
|
499
|
-
declare const index$
|
500
|
-
type index$
|
501
|
-
type index$
|
502
|
-
type index$
|
503
|
-
type index$
|
504
|
-
type index$
|
505
|
-
type index$
|
506
|
-
type index$
|
507
|
-
type index$
|
508
|
-
type index$
|
509
|
-
type index$
|
510
|
-
declare const index$
|
511
|
-
declare const index$
|
512
|
-
declare const index$
|
513
|
-
declare const index$
|
514
|
-
declare const index$
|
515
|
-
declare const index$
|
516
|
-
declare namespace index$
|
517
|
-
export { type index$
|
459
|
+
type index$3_AnyAnyLink = AnyAnyLink;
|
460
|
+
type index$3_AnyBlock = AnyBlock;
|
461
|
+
type index$3_AnyLink = AnyLink;
|
462
|
+
type index$3_BaseBlockstore = BaseBlockstore;
|
463
|
+
declare const index$3_BaseBlockstore: typeof BaseBlockstore;
|
464
|
+
type index$3_BlobLike = BlobLike;
|
465
|
+
type index$3_BlockFetcher = BlockFetcher;
|
466
|
+
type index$3_CarClockHead = CarClockHead;
|
467
|
+
type index$3_CarGroup = CarGroup;
|
468
|
+
type index$3_CarTransaction = CarTransaction;
|
469
|
+
declare const index$3_CarTransaction: typeof CarTransaction;
|
470
|
+
type index$3_CommitOpts = CommitOpts;
|
471
|
+
type index$3_CompactionFetcher = CompactionFetcher;
|
472
|
+
declare const index$3_CompactionFetcher: typeof CompactionFetcher;
|
473
|
+
type index$3_ConnectREST = ConnectREST;
|
474
|
+
declare const index$3_ConnectREST: typeof ConnectREST;
|
475
|
+
type index$3_Connectable = Connectable;
|
476
|
+
type index$3_Connection = Connection;
|
477
|
+
type index$3_ConnectionBase = ConnectionBase;
|
478
|
+
declare const index$3_ConnectionBase: typeof ConnectionBase;
|
479
|
+
type index$3_CryptoOpts = CryptoOpts;
|
480
|
+
type index$3_DataSaveOpts = DataSaveOpts;
|
481
|
+
type index$3_DataStore = DataStore;
|
482
|
+
declare const index$3_DataStore: typeof DataStore;
|
483
|
+
type index$3_DbMeta = DbMeta;
|
484
|
+
type index$3_DbMetaEventBlock = DbMetaEventBlock;
|
485
|
+
type index$3_DownloadDataFnParams = DownloadDataFnParams;
|
486
|
+
type index$3_DownloadMetaFnParams = DownloadMetaFnParams;
|
487
|
+
type index$3_EncryptedBlockstore = EncryptedBlockstore;
|
488
|
+
declare const index$3_EncryptedBlockstore: typeof EncryptedBlockstore;
|
489
|
+
type index$3_Gateway = Gateway;
|
490
|
+
type index$3_GatewayOpts = GatewayOpts;
|
491
|
+
type index$3_GetResult = GetResult;
|
492
|
+
type index$3_Loadable = Loadable;
|
493
|
+
declare const index$3_Loadable: typeof Loadable;
|
494
|
+
type index$3_Loader = Loader;
|
495
|
+
declare const index$3_Loader: typeof Loader;
|
496
|
+
type index$3_MetaStore = MetaStore;
|
497
|
+
declare const index$3_MetaStore: typeof MetaStore;
|
498
|
+
type index$3_NotFoundError = NotFoundError;
|
499
|
+
declare const index$3_NotFoundError: typeof NotFoundError;
|
500
|
+
type index$3_RemoteWAL = RemoteWAL;
|
501
|
+
declare const index$3_RemoteWAL: typeof RemoteWAL;
|
502
|
+
type index$3_StoreFactory = StoreFactory;
|
503
|
+
type index$3_StoreFactoryItem = StoreFactoryItem;
|
504
|
+
type index$3_StoreOpts = StoreOpts;
|
505
|
+
type index$3_StoreRuntime = StoreRuntime;
|
506
|
+
type index$3_TestStore = TestStore;
|
507
|
+
type index$3_TransactionMeta = TransactionMeta;
|
508
|
+
type index$3_UploadDataFnParams = UploadDataFnParams;
|
509
|
+
type index$3_UploadMetaFnParams = UploadMetaFnParams;
|
510
|
+
type index$3_VoidResult = VoidResult;
|
511
|
+
type index$3_WALState = WALState;
|
512
|
+
declare const index$3_isNotFoundError: typeof isNotFoundError;
|
513
|
+
declare const index$3_parseCarFile: typeof parseCarFile;
|
514
|
+
declare const index$3_registerStoreProtocol: typeof registerStoreProtocol;
|
515
|
+
declare const index$3_testStoreFactory: typeof testStoreFactory;
|
516
|
+
declare const index$3_toStoreRuntime: typeof toStoreRuntime;
|
517
|
+
declare const index$3_toURL: typeof toURL;
|
518
|
+
declare namespace index$3 {
|
519
|
+
export { type index$3_AnyAnyLink as AnyAnyLink, type index$3_AnyBlock as AnyBlock, type index$3_AnyLink as AnyLink, index$3_BaseBlockstore as BaseBlockstore, type index$3_BlobLike as BlobLike, type index$3_BlockFetcher as BlockFetcher, type index$3_CarClockHead as CarClockHead, type index$3_CarGroup as CarGroup, index$3_CarTransaction as CarTransaction, type index$3_CommitOpts as CommitOpts, index$3_CompactionFetcher as CompactionFetcher, index$3_ConnectREST as ConnectREST, type index$3_Connectable as Connectable, type index$3_Connection as Connection, index$3_ConnectionBase as ConnectionBase, type index$3_CryptoOpts as CryptoOpts, type index$3_DataSaveOpts as DataSaveOpts, index$3_DataStore as DataStore, type index$3_DbMeta as DbMeta, type index$3_DbMetaEventBlock as DbMetaEventBlock, type index$3_DownloadDataFnParams as DownloadDataFnParams, type index$3_DownloadMetaFnParams as DownloadMetaFnParams, index$3_EncryptedBlockstore as EncryptedBlockstore, type index$3_Gateway as Gateway, type index$3_GatewayOpts as GatewayOpts, type index$3_GetResult as GetResult, index$3_Loadable as Loadable, index$3_Loader as Loader, index$3_MetaStore as MetaStore, index$3_NotFoundError as NotFoundError, index$3_RemoteWAL as RemoteWAL, type index$3_StoreFactory as StoreFactory, type index$3_StoreFactoryItem as StoreFactoryItem, type index$3_StoreOpts as StoreOpts, type index$3_StoreRuntime as StoreRuntime, type index$3_TestStore as TestStore, type index$3_TransactionMeta as TransactionMeta, type index$3_UploadDataFnParams as UploadDataFnParams, type index$3_UploadMetaFnParams as UploadMetaFnParams, type index$3_VoidResult as VoidResult, type index$3_WALState as WALState, index$3_isNotFoundError as isNotFoundError, index$3_parseCarFile as parseCarFile, index$3_registerStoreProtocol as registerStoreProtocol, index$3_testStoreFactory as testStoreFactory, index$3_toStoreRuntime as toStoreRuntime, index$3_toURL as toURL };
|
518
520
|
}
|
519
521
|
|
520
522
|
type Falsy = false | null | undefined;
|
@@ -598,7 +600,7 @@ interface IndexTransactionMeta {
|
|
598
600
|
interface FileTransactionMeta {
|
599
601
|
readonly files?: AnyLink[];
|
600
602
|
}
|
601
|
-
type MetaType = CRDTMeta | IndexTransactionMeta | FileTransactionMeta;
|
603
|
+
type MetaType$1 = CRDTMeta | IndexTransactionMeta | FileTransactionMeta;
|
602
604
|
interface IdxMeta {
|
603
605
|
readonly byId: AnyLink;
|
604
606
|
readonly byKey: AnyLink;
|
@@ -618,6 +620,11 @@ interface QueryOpts<K extends IndexKeyType> {
|
|
618
620
|
readonly keys?: DocFragment[];
|
619
621
|
prefix?: IndexKeyType;
|
620
622
|
}
|
623
|
+
interface AllDocsQueryOpts extends QueryOpts<string> {
|
624
|
+
readonly key?: string;
|
625
|
+
readonly keys?: string[];
|
626
|
+
prefix?: string;
|
627
|
+
}
|
621
628
|
type EmitFn = (k: IndexKeyType, v?: DocFragment) => void;
|
622
629
|
type MapFn<T extends DocTypes> = (doc: DocWithId<T>, emit: EmitFn) => DocFragment | unknown;
|
623
630
|
interface ChangesOptions {
|
@@ -642,7 +649,7 @@ type NoUpdateListenerFn = () => Promise<void> | void;
|
|
642
649
|
type ListenerFn<T extends DocTypes> = UpdateListenerFn<T> | NoUpdateListenerFn;
|
643
650
|
|
644
651
|
interface WriteQueue<T extends DocTypes> {
|
645
|
-
push(task: DocUpdate<T>): Promise<MetaType>;
|
652
|
+
push(task: DocUpdate<T>): Promise<MetaType$1>;
|
646
653
|
}
|
647
654
|
|
648
655
|
declare class IndexTree<K extends IndexKeyType, R extends DocFragment> {
|
@@ -679,7 +686,7 @@ interface ProllyNode<K extends IndexKeyType, T extends DocFragment> extends Prol
|
|
679
686
|
readonly block: Promise<Block>;
|
680
687
|
}
|
681
688
|
|
682
|
-
declare function index$
|
689
|
+
declare function index$2<K extends IndexKeyType = string, T extends DocTypes = NonNullable<unknown>, R extends DocFragment = T>({ _crdt }: {
|
683
690
|
_crdt: CRDT<T> | CRDT<NonNullable<unknown>>;
|
684
691
|
}, name: string, mapFn?: MapFn<T>, meta?: IdxMeta): Index<K, T, R>;
|
685
692
|
declare class Index<K extends IndexKeyType, T extends DocTypes, R extends DocFragment = T> {
|
@@ -788,7 +795,7 @@ declare class Database<DT extends DocTypes = NonNullable<unknown>> implements Co
|
|
788
795
|
put<T extends DocTypes>(doc: DocSet<T>): Promise<DbResponse>;
|
789
796
|
del(id: string): Promise<DbResponse>;
|
790
797
|
changes<T extends DocTypes>(since?: ClockHead, opts?: ChangesOptions): Promise<ChangesResponse<T>>;
|
791
|
-
allDocs<T extends DocTypes>(): Promise<{
|
798
|
+
allDocs<T extends DocTypes>(opts?: AllDocsQueryOpts): Promise<{
|
792
799
|
rows: {
|
793
800
|
key: string;
|
794
801
|
value: DocWithId<T>;
|
@@ -885,6 +892,104 @@ declare function getPath(url: URL, logger: Logger): Promise<string>;
|
|
885
892
|
declare function getFileName(url: URL, key: string, logger: Logger): string;
|
886
893
|
declare function ensureIndexName(url: URL, name: string): string;
|
887
894
|
|
895
|
+
interface DBConnection {
|
896
|
+
connect(): Promise<void>;
|
897
|
+
readonly opts: SQLOpts;
|
898
|
+
}
|
899
|
+
interface SQLStore<IType, KType, OType = IType[]> {
|
900
|
+
readonly dbConn: DBConnection;
|
901
|
+
start(url: URL): Promise<void>;
|
902
|
+
insert(url: URL, ose: IType): Promise<RunResult>;
|
903
|
+
select(url: URL, car: KType): Promise<OType>;
|
904
|
+
delete(url: URL, car: KType): Promise<RunResult>;
|
905
|
+
close(url: URL): Promise<Result<void>>;
|
906
|
+
destroy(url: URL): Promise<Result<void>>;
|
907
|
+
}
|
908
|
+
interface SQLTableNames {
|
909
|
+
readonly data: string;
|
910
|
+
readonly meta: string;
|
911
|
+
readonly wal: string;
|
912
|
+
}
|
913
|
+
declare const DefaultSQLTableNames: SQLTableNames;
|
914
|
+
interface SQLOpts {
|
915
|
+
readonly url: URL;
|
916
|
+
readonly sqlFlavor: "sqlite" | "mysql" | "postgres";
|
917
|
+
readonly tableNames: SQLTableNames;
|
918
|
+
readonly logger: Logger;
|
919
|
+
readonly textEncoder: TextEncoder;
|
920
|
+
readonly textDecoder: TextDecoder;
|
921
|
+
}
|
922
|
+
interface WalKey {
|
923
|
+
readonly name: string;
|
924
|
+
readonly branch: string;
|
925
|
+
}
|
926
|
+
interface WalRecord extends WalKey {
|
927
|
+
readonly state: Uint8Array;
|
928
|
+
readonly updated_at: Date;
|
929
|
+
}
|
930
|
+
type WalSQLStore = SQLStore<WalRecord, WalKey>;
|
931
|
+
interface MetaType {
|
932
|
+
readonly name: string;
|
933
|
+
readonly branch: string;
|
934
|
+
readonly meta: Uint8Array;
|
935
|
+
}
|
936
|
+
interface MetaRecordKey {
|
937
|
+
readonly name: string;
|
938
|
+
readonly branch: string;
|
939
|
+
}
|
940
|
+
interface MetaRecord extends MetaRecordKey {
|
941
|
+
readonly meta: Uint8Array;
|
942
|
+
readonly updated_at: Date;
|
943
|
+
}
|
944
|
+
type MetaSQLStore = SQLStore<MetaRecord, MetaRecordKey>;
|
945
|
+
interface DataRecord {
|
946
|
+
readonly name: string;
|
947
|
+
readonly car: string;
|
948
|
+
readonly data: Uint8Array;
|
949
|
+
readonly updated_at: Date;
|
950
|
+
}
|
951
|
+
type DataSQLStore = SQLStore<DataRecord, string>;
|
952
|
+
|
953
|
+
declare function ensureSQLOpts(url: URL, opts: Partial<SQLOpts>, componentName: string, ctx?: Record<string, unknown>): SQLOpts;
|
954
|
+
|
955
|
+
type index$1_DBConnection = DBConnection;
|
956
|
+
type index$1_DataRecord = DataRecord;
|
957
|
+
type index$1_DataSQLStore = DataSQLStore;
|
958
|
+
declare const index$1_DefaultSQLTableNames: typeof DefaultSQLTableNames;
|
959
|
+
type index$1_MetaRecord = MetaRecord;
|
960
|
+
type index$1_MetaRecordKey = MetaRecordKey;
|
961
|
+
type index$1_MetaSQLStore = MetaSQLStore;
|
962
|
+
type index$1_MetaType = MetaType;
|
963
|
+
type index$1_SQLOpts = SQLOpts;
|
964
|
+
type index$1_SQLStore<IType, KType, OType = IType[]> = SQLStore<IType, KType, OType>;
|
965
|
+
type index$1_SQLTableNames = SQLTableNames;
|
966
|
+
type index$1_WalKey = WalKey;
|
967
|
+
type index$1_WalRecord = WalRecord;
|
968
|
+
type index$1_WalSQLStore = WalSQLStore;
|
969
|
+
declare const index$1_ensureSQLOpts: typeof ensureSQLOpts;
|
970
|
+
declare namespace index$1 {
|
971
|
+
export { type index$1_DBConnection as DBConnection, type index$1_DataRecord as DataRecord, type index$1_DataSQLStore as DataSQLStore, index$1_DefaultSQLTableNames as DefaultSQLTableNames, type index$1_MetaRecord as MetaRecord, type index$1_MetaRecordKey as MetaRecordKey, type index$1_MetaSQLStore as MetaSQLStore, type index$1_MetaType as MetaType, type index$1_SQLOpts as SQLOpts, type index$1_SQLStore as SQLStore, type index$1_SQLTableNames as SQLTableNames, type index$1_WalKey as WalKey, type index$1_WalRecord as WalRecord, type index$1_WalSQLStore as WalSQLStore, index$1_ensureSQLOpts as ensureSQLOpts };
|
972
|
+
}
|
973
|
+
|
974
|
+
declare function toCryptoOpts(cryptoOpts?: Partial<CryptoOpts>): CryptoOpts;
|
975
|
+
|
976
|
+
declare const crypto$1_toCryptoOpts: typeof toCryptoOpts;
|
977
|
+
declare namespace crypto$1 {
|
978
|
+
export { crypto$1_toCryptoOpts as toCryptoOpts };
|
979
|
+
}
|
980
|
+
|
981
|
+
declare function encodeFile(blob: BlobLike): Promise<{
|
982
|
+
cid: AnyLink;
|
983
|
+
blocks: AnyBlock[];
|
984
|
+
}>;
|
985
|
+
declare function decodeFile(blocks: unknown, cid: AnyLink, meta: DocFileMeta): Promise<File>;
|
986
|
+
|
987
|
+
declare const files_decodeFile: typeof decodeFile;
|
988
|
+
declare const files_encodeFile: typeof encodeFile;
|
989
|
+
declare namespace files {
|
990
|
+
export { files_decodeFile as decodeFile, files_encodeFile as encodeFile };
|
991
|
+
}
|
992
|
+
|
888
993
|
declare const FILESTORE_VERSION = "v0.19-file";
|
889
994
|
|
890
995
|
declare const INDEXDB_VERSION = "v0.19-indexdb";
|
@@ -898,14 +1003,15 @@ declare const index_SQLITE_VERSION: typeof SQLITE_VERSION;
|
|
898
1003
|
declare const index_SysContainer: typeof SysContainer;
|
899
1004
|
declare const index_dataDir: typeof dataDir;
|
900
1005
|
declare const index_ensureIndexName: typeof ensureIndexName;
|
1006
|
+
declare const index_files: typeof files;
|
901
1007
|
declare const index_getFileName: typeof getFileName;
|
902
1008
|
declare const index_getPath: typeof getPath;
|
903
1009
|
declare const index_join: typeof join;
|
904
1010
|
declare namespace index {
|
905
|
-
export { index_FILESTORE_VERSION as FILESTORE_VERSION, index_INDEXDB_VERSION as INDEXDB_VERSION, type index_NodeMap as NodeMap, index_SQLITE_VERSION as SQLITE_VERSION, index_SysContainer as SysContainer, index_dataDir as dataDir, index_ensureIndexName as ensureIndexName, index_getFileName as getFileName, index_getPath as getPath, index_join as join };
|
1011
|
+
export { index_FILESTORE_VERSION as FILESTORE_VERSION, index_INDEXDB_VERSION as INDEXDB_VERSION, type index_NodeMap as NodeMap, index_SQLITE_VERSION as SQLITE_VERSION, index_SysContainer as SysContainer, crypto$1 as crypto, index_dataDir as dataDir, index_ensureIndexName as ensureIndexName, index_files as files, index_getFileName as getFileName, index_getPath as getPath, index_join as join, index$1 as sql };
|
906
1012
|
}
|
907
1013
|
|
908
1014
|
declare const PACKAGE_VERSION: string;
|
909
1015
|
|
910
|
-
export { CRDT, type CRDTMeta, type ChangesOptions, type ChangesResponse, type ChangesResponseRow, type ClockHead, type ClockLink, type ConfigOpts, Database, type DbResponse, type DocBase, type DocFileMeta, type DocFiles, type DocFragment, type DocLiteral, type DocObject, type DocRecord, type DocSet, type DocTypes, type DocUpdate, type DocValue, type DocWithId, type Falsy, type FileTransactionMeta, type IdxMeta, type IdxMetaMap, Index, type IndexKey, type IndexKeyType, type IndexRow, type IndexRows, type IndexTransactionMeta, type IndexUpdate, type IndexUpdateString, type Joiner, type KeyLiteral, type ListenerFn, type LoggerOpts, type MapFn, type MetaType, type NoUpdateListenerFn, PACKAGE_VERSION, type QueryOpts, type UnknownDoc, type UpdateListenerFn, index$
|
1016
|
+
export { type AllDocsQueryOpts, CRDT, type CRDTMeta, type ChangesOptions, type ChangesResponse, type ChangesResponseRow, type ClockHead, type ClockLink, type ConfigOpts, Database, type DbResponse, type DocBase, type DocFileMeta, type DocFiles, type DocFragment, type DocLiteral, type DocObject, type DocRecord, type DocSet, type DocTypes, type DocUpdate, type DocValue, type DocWithId, type Falsy, type FileTransactionMeta, type IdxMeta, type IdxMetaMap, Index, type IndexKey, type IndexKeyType, type IndexRow, type IndexRows, type IndexTransactionMeta, type IndexUpdate, type IndexUpdateString, type Joiner, type KeyLiteral, type ListenerFn, type LoggerOpts, type MapFn, type MetaType$1 as MetaType, type NoUpdateListenerFn, PACKAGE_VERSION, type QueryOpts, type UnknownDoc, type UpdateListenerFn, index$3 as blockstore, index$3 as bs, ensureLogger, exception2Result, exceptionWrapper, falsyToUndef, fireproof, getKey, getName, getStore, index$2 as index, isFalsy, index as rt, index as runtime, throwFalsy };
|
911
1017
|
declare module '@fireproof/core'
|