FlareBindings class
Bindings to Flare Document Database.
Constructors
- FlareBindings(DynamicLibrary dynamicLibrary)
-
The symbols are looked up in
dynamicLibrary. -
FlareBindings.fromLookup(Pointer<
T> lookup<T extends NativeType>(String symbolName) ) -
The symbols are looked up with
lookup.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
db_close(
Pointer< DB> db) → void - Close the database
-
db_create_index(
Pointer< DB> db, Pointer<Char> name) → int - Secondary Index
-
db_delete(
Pointer< DB> db, Pointer<Char> key) → bool - Delete a document by key
-
db_free_string(
Pointer< Char> s) → void - Free a string returned by db_get, db_get_by_key, etc.
-
db_get(
Pointer< DB> db, int id) → Pointer<Char> - Get a document by ID (internal offset)
-
db_get_by_key(
Pointer< DB> db, Pointer<Char> key) → Pointer<Char> - Get a document by key
-
db_get_index_name(
Pointer< DB> db, int indexIdx) → Pointer<Char> -
db_get_root(
Pointer< DB> db, int indexIdx) → int -
db_iterator_close(
Pointer< DBIterator> it) → void -
db_iterator_next(
Pointer< DBIterator> it, Pointer<Pointer< key, Pointer<Char> >Pointer< json) → boolChar> > -
db_iterator_open(
Pointer< DB> db, int rootOffset, Pointer<Char> startKey, Pointer<Char> endKey) → Pointer<DBIterator> - Iterator
-
db_open(
Pointer< Char> path, Pointer<UnsignedChar> encryption_key) → Pointer<DB> - Open or create a database file
-
db_put(
Pointer< DB> db, Pointer<Char> key, Pointer<Char> json) → int - Insert or update a document with a specific key
-
db_put_secondary(
Pointer< DB> db, int indexIdx, Pointer<Char> secKey, Pointer<Char> primKey) → void -
db_remove_secondary(
Pointer< DB> db, int indexIdx, Pointer<Char> secKey, Pointer<Char> primKey) → void -
db_set_key(
Pointer< DB> db, Pointer<UnsignedChar> key) → void - Encryption
-
db_sync(
Pointer< DB> db) → void - Flush changes to disk
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited