get method

NSEntity? get(
  1. NSKey key
)

Read a committed entity by key. Returns null if not found.

Implementation

NSEntity? get(NSKey key) {
  _checkOpen();
  final entity = nosqueel.ns_database_get(_db, key.handle);
  if (entity == nullptr) {
    return null;
  }
  return NSEntity.owned(entity);
}