Protected
authorsProtected
claimsA weak map of events that are claimed by other things
Protected
created_LRU cache of last events touched
A stream of events inserted into the database
Protected
kindsIndexes
Protected
logOptional
onA method thats called before a new event is inserted
A stream of events removed from the database
Protected
replaceableA sorted array of replaceable events by address
Protected
tagsA stream of events that have been updated
Inserts an event into the database and notifies all subscriptions
Sets the claim on the event and touches it
Removes all claims on an event
Protected
getGets all events that match the filters
Gets a single event based on id
Returns all events that match the filter
Returns all events that match the filters
Protected
getIndex helper methods
Gets the latest replaceable event
Optional
identifier: stringGets the history of a replaceable event
Optional
identifier: stringProtected
getGets a timeline of events that match the filters
Checks if the database contains an event without touching it
Checks if the event set has a replaceable event
Optional
identifier: stringChecks if an event is claimed by anything
Iterates over all events by author
Iterates over all events by id
Iterates over all events by kind
Iterates over all events by indexable tag and value
Iterates over all events by time
Remove the oldest events that are not claimed
Removes an event from the database and notifies all subscriptions
Removes a claim from an event
Moves an event to the top of the LRU cache
Inserts and event into the database and notifies all subscriptions that the event has updated
A set of nostr events that can be queried and subscribed to NOTE: does not handle replaceable events or any deletion logic