Hierarchy

  • Dexie
    • SnortSystemDb

Constructors

Properties

Collection: {
    prototype: Collection<any, IndexableType>;
}

Type declaration

  • prototype: Collection<any, IndexableType>
Table: {
    prototype: Table<any, IndexableType>;
}

Type declaration

  • prototype: Table<any, IndexableType>
Transaction: {
    prototype: Transaction;
}

Type declaration

  • prototype: Transaction
Version: {
    prototype: Version;
}

Type declaration

  • prototype: Version
WhereClause: {
    prototype: WhereClause<any, IndexableType>;
}

Type declaration

  • prototype: WhereClause<any, IndexableType>
_allTables: {
    [name: string]: Table<any, IndexableType>;
}

Type declaration

  • [name: string]: Table<any, IndexableType>
_createTransaction: ((this, mode, storeNames, dbschema, parentTransaction?) => Transaction)

Type declaration

    • (this, mode, storeNames, dbschema, parentTransaction?): Transaction
    • Parameters

      • this: Dexie
      • mode: IDBTransactionMode
      • storeNames: ArrayLike<string>
      • dbschema: DbSchema
      • Optional parentTransaction: null | Transaction

      Returns Transaction

_dbSchema: DbSchema
core: DBCore
events: Table<NostrEvent, IndexableType>
name: string
on: DbEvents
ready: boolean = false
relayMetrics: Table<RelayMetrics, IndexableType>
tables: Table<any, IndexableType>[]
userRelays: Table<UsersRelays, IndexableType>
users: Table<CachedMetadata, IndexableType>
verno: number
vip: Dexie
AbortError: DexieErrorConstructor
BulkError: BulkErrorConstructor
ConstraintError: DexieErrorConstructor
DataCloneError: DexieErrorConstructor
DataError: DexieErrorConstructor
DatabaseClosedError: DexieErrorConstructor
DexieError: DexieErrorConstructor
Events: ((ctx?) => DexieEventSet)

Type declaration

    • (ctx?): DexieEventSet
    • Parameters

      • Optional ctx: any

      Returns DexieEventSet

ForeignAwaitError: DexieErrorConstructor
InternalError: DexieErrorConstructor
InvalidAccessError: DexieErrorConstructor
InvalidArgumentError: DexieErrorConstructor
InvalidStateError: DexieErrorConstructor
InvalidTableError: DexieErrorConstructor
MissingAPIError: DexieErrorConstructor
ModifyError: ModifyErrorConstructor
NoSuchDatabaseError: DexieErrorConstructor
NotFoundError: DexieErrorConstructor
OpenFailedError: DexieErrorConstructor
PrematureCommitError: DexieErrorConstructor
Promise: PromiseExtendedConstructor
QuotaExceededError: DexieErrorConstructor
ReadOnlyError: DexieErrorConstructor
SchemaError: DexieErrorConstructor
SubTransactionError: DexieErrorConstructor
TimeoutError: DexieErrorConstructor
TransactionInactiveError: DexieErrorConstructor
UnknownError: DexieErrorConstructor
UnsupportedError: DexieErrorConstructor
UpgradeError: DexieErrorConstructor
VersionChangeError: DexieErrorConstructor
VersionError: DexieErrorConstructor
addons: ((db) => void)[]

Type declaration

    • (db): void
    • Parameters

      • db: Dexie

      Returns void

currentTransaction: Transaction
default: Dexie
dependencies: DexieDOMDependencies
errnames: DexieErrors
maxKey: string | void[][]
minKey: number
on: GlobalDexieEvents
semVer: string
version: number

Methods

  • Returns IDBDatabase

  • Returns void

  • Returns PromiseExtended<void>

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns Promise<boolean>

  • Returns boolean

  • Returns PromiseExtended<Dexie>

  • Type Parameters

    • T = any

    • TKey = IndexableType

    Parameters

    • tableName: string

    Returns Table<T, TKey>

  • Type Parameters

    • U

    Parameters

    • mode: TransactionMode
    • table: Table<any, IndexableType>
    • scope: ((trans) => U | PromiseLike<U>)
        • (trans): U | PromiseLike<U>
        • Parameters

          • trans: Transaction

          Returns U | PromiseLike<U>

    Returns PromiseExtended<U>

  • Type Parameters

    • U

    Parameters

    • mode: TransactionMode
    • table: string
    • scope: ((trans) => U | PromiseLike<U>)
        • (trans): U | PromiseLike<U>
        • Parameters

          • trans: Transaction

          Returns U | PromiseLike<U>

    Returns PromiseExtended<U>

  • Type Parameters

    • U

    Parameters

    • mode: TransactionMode
    • table: Table<any, IndexableType>
    • table2: Table<any, IndexableType>
    • scope: ((trans) => U | PromiseLike<U>)
        • (trans): U | PromiseLike<U>
        • Parameters

          • trans: Transaction

          Returns U | PromiseLike<U>

    Returns PromiseExtended<U>

  • Type Parameters

    • U

    Parameters

    • mode: TransactionMode
    • table: string
    • table2: string
    • scope: ((trans) => U | PromiseLike<U>)
        • (trans): U | PromiseLike<U>
        • Parameters

          • trans: Transaction

          Returns U | PromiseLike<U>

    Returns PromiseExtended<U>

  • Type Parameters

    • U

    Parameters

    • mode: TransactionMode
    • table: Table<any, IndexableType>
    • table2: Table<any, IndexableType>
    • table3: Table<any, IndexableType>
    • scope: ((trans) => U | PromiseLike<U>)
        • (trans): U | PromiseLike<U>
        • Parameters

          • trans: Transaction

          Returns U | PromiseLike<U>

    Returns PromiseExtended<U>

  • Type Parameters

    • U

    Parameters

    • mode: TransactionMode
    • table: string
    • table2: string
    • table3: string
    • scope: ((trans) => U | PromiseLike<U>)
        • (trans): U | PromiseLike<U>
        • Parameters

          • trans: Transaction

          Returns U | PromiseLike<U>

    Returns PromiseExtended<U>

  • Type Parameters

    • U

    Parameters

    • mode: TransactionMode
    • table: Table<any, IndexableType>
    • table2: Table<any, IndexableType>
    • table3: Table<any, IndexableType>
    • table4: Table<any, IndexableType>
    • scope: ((trans) => U | PromiseLike<U>)
        • (trans): U | PromiseLike<U>
        • Parameters

          • trans: Transaction

          Returns U | PromiseLike<U>

    Returns PromiseExtended<U>

  • Type Parameters

    • U

    Parameters

    • mode: TransactionMode
    • table: string
    • table2: string
    • table3: string
    • table4: string
    • scope: ((trans) => U | PromiseLike<U>)
        • (trans): U | PromiseLike<U>
        • Parameters

          • trans: Transaction

          Returns U | PromiseLike<U>

    Returns PromiseExtended<U>

  • Type Parameters

    • U

    Parameters

    • mode: TransactionMode
    • table: Table<any, IndexableType>
    • table2: Table<any, IndexableType>
    • table3: Table<any, IndexableType>
    • table4: Table<any, IndexableType>
    • table5: Table<any, IndexableType>
    • scope: ((trans) => U | PromiseLike<U>)
        • (trans): U | PromiseLike<U>
        • Parameters

          • trans: Transaction

          Returns U | PromiseLike<U>

    Returns PromiseExtended<U>

  • Type Parameters

    • U

    Parameters

    • mode: TransactionMode
    • table: string
    • table2: string
    • table3: string
    • table4: string
    • table5: string
    • scope: ((trans) => U | PromiseLike<U>)
        • (trans): U | PromiseLike<U>
        • Parameters

          • trans: Transaction

          Returns U | PromiseLike<U>

    Returns PromiseExtended<U>

  • Type Parameters

    • U

    Parameters

    • mode: TransactionMode
    • tables: Table<any, IndexableType>[]
    • scope: ((trans) => U | PromiseLike<U>)
        • (trans): U | PromiseLike<U>
        • Parameters

          • trans: Transaction

          Returns U | PromiseLike<U>

    Returns PromiseExtended<U>

  • Type Parameters

    • U

    Parameters

    • mode: TransactionMode
    • tables: string[]
    • scope: ((trans) => U | PromiseLike<U>)
        • (trans): U | PromiseLike<U>
        • Parameters

          • trans: Transaction

          Returns U | PromiseLike<U>

    Returns PromiseExtended<U>

  • Parameters

    • __namedParameters: Middleware<{
          stack: "dbcore";
      }>

    Returns this

  • Parameters

    • __namedParameters: {
          name: string;
          stack: "dbcore";
      }
      • name: string
      • stack: "dbcore"

    Returns this

  • Parameters

    • middleware: Middleware<DBCore>

    Returns this

  • Parameters

    • versionNumber: number

    Returns Version

  • Parameters

    • fn: Function

    Returns void

  • Type Parameters

    • T

    Parameters

    • obj: T

    Returns T

  • Parameters

    • obj: Object
    • keyPath: string

    Returns void

  • Parameters

    • dbName: string

    Returns Promise<void>

  • Parameters

    • dbName: string

    Returns Promise<boolean>

  • Parameters

    • target: ObservabilitySet
    • newSet: ObservabilitySet

    Returns ObservabilitySet

  • Parameters

    • obj: Object
    • keyPath: string

    Returns any

  • Returns Promise<string[]>

  • Type Parameters

    • R

    Parameters

    • thenShortcut: ThenShortcut<string[], R>

    Returns Promise<R>

  • Type Parameters

    • U

    Parameters

    • fn: (() => U)
        • (): U
        • Returns U

    Returns U

  • Type Parameters

    • T

    Parameters

    • fn: (() => T | Promise<T>)
        • (): T | Promise<T>
        • Returns T | Promise<T>

    Returns Observable<T>

  • Type Parameters

    • F

    Parameters

    • origFunc: F
    • overridedFactory: ((fn) => any)
        • (fn): any
        • Parameters

          • fn: any

          Returns any

    Returns F

  • Parameters

    • obj: Object
    • keyPath: string
    • value: any

    Returns void

  • Type Parameters

    • T

    Parameters

    • obj: T

    Returns T

  • Type Parameters

    • U

    Parameters

    • scopeFunction: (() => U)
        • (): U
        • Returns U

    Returns U

  • Type Parameters

    • T

    Parameters

    • promise: T | PromiseLike<T>
    • Optional timeoutMilliseconds: number

    Returns Promise<T>

Generated using TypeDoc