DbObjectBox class

Constructors

DbObjectBox({bool attach = false})
crates objectbox db instace attach to attach to already open instance (e.g. for isolates)

Properties

dbRdy Future
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
closes the cache manger
used to close the db
override
loadContactList(String pubKey) Future<ContactList?>
override
loadEvent(String id) Future<Nip01Event?>
override
loadEvents({List<String>? pubKeys, List<int>? kinds, String? pTag, int? since, int? until, int? limit}) Future<List<Nip01Event>>
override
loadMetadata(String pubKey) Future<Metadata?>
override
loadMetadatas(List<String> pubKeys) Future<List<Metadata?>>
override
loadNip05(String pubKey) Future<Nip05?>
override
loadNip05s(List<String> pubKeys) Future<List<Nip05?>>
override
loadRelaySet(String name, String pubKey) Future<RelaySet?>
override
loadUserRelayList(String pubKey) Future<UserRelayList?>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAllContactLists() Future<void>
override
removeAllEvents() Future<void>
override
removeAllEventsByPubKey(String pubKey) Future<void>
override
removeAllMetadatas() Future<void>
override
removeAllNip05s() Future<void>
override
removeAllRelaySets() Future<void>
override
removeAllUserRelayLists() Future<void>
override
removeContactList(String pubKey) Future<void>
override
removeEvent(String id) Future<void>
override
removeMetadata(String pubKey) Future<void>
override
removeNip05(String pubKey) Future<void>
override
removeRelaySet(String name, String pubKey) Future<void>
override
removeUserRelayList(String pubKey) Future<void>
override
saveContactList(ContactList contactList) Future<void>
override
saveContactLists(List<ContactList> contactLists) Future<void>
override
saveEvent(Nip01Event event) Future<void>
override
saveEvents(List<Nip01Event> events) Future<void>
override
saveMetadata(Metadata metadata) Future<void>
override
saveMetadatas(List<Metadata> metadatas) Future<void>
override
saveNip05(Nip05 nip05) Future<void>
override
saveNip05s(List<Nip05> nip05s) Future<void>
override
saveRelaySet(RelaySet relaySet) Future<void>
override
saveUserRelayList(UserRelayList userRelayList) Future<void>
override
saveUserRelayLists(List<UserRelayList> userRelayLists) Future<void>
override
searchEvents({List<String>? ids, List<String>? authors, List<int>? kinds, Map<String, List<String>>? tags, int? since, int? until, String? search, int limit = 100}) Future<Iterable<Nip01Event>>
search events
ids - list of event ids
authors - list of authors pubKeys
kinds - list of kinds
tags - map of tags
since - timestamp
until - timestamp
search - search string to match against content
limit - limit of results
returns list of events
override
searchMetadatas(String search, int limit) Future<Iterable<Metadata>>
Search by name, nip05
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited