AppleSauce
    Preparing search index...

    Interface IEventDatabase

    The base interface for a database of events

    interface IEventDatabase {
        update?: (event: Event) => void;
        add(event: Event): Event;
        getByFilters(filters: Filter | Filter[]): Event[];
        getEvent(id: string): undefined | Event;
        getReplaceable(
            kind: number,
            pubkey: string,
            identifier?: string,
        ): undefined | Event;
        getReplaceableHistory(
            kind: number,
            pubkey: string,
            identifier?: string,
        ): undefined | Event[];
        getTimeline(filters: Filter | Filter[]): Event[];
        hasEvent(id: string): boolean;
        hasReplaceable(kind: number, pubkey: string, identifier?: string): boolean;
        remove(event: string | Event): boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    update?: (event: Event) => void

    Notifies the database that an event has updated

    Methods