realm
Version:
Realm by MongoDB is an offline-first mobile database: an alternative to SQLite and key-value stores
17 lines (16 loc) • 657 B
TypeScript
import { HelperOptions, PropertyHelpers, binding } from "./internal";
/** @internal */
export declare class PropertyMap {
private objectSchemaName;
private initialized;
private mapping;
/**
* Note: Cannot key by the binding.ColKey directly, as this is `Long` on JSC (which does not pass equality checks like `bigint` does)
*/
private nameByColumnKeyString;
private _names;
initialize(objectSchema: binding.ObjectSchema, defaults: Record<string, unknown>, options: HelperOptions): void;
get: (property: string) => PropertyHelpers;
getName: <T>(columnKey: binding.ColKey) => keyof T;
get names(): string[];
}