Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@app-masters/realm-async-storage

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@app-masters/realm-async-storage

Class for deal with Realm local DB similar to RN AsyncStorage

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

Realm Async Storage

Class for deal with Realm local DB similar to RN AsyncStorage

Usage

On the App.js, import and give desired model list to setup.

import {RealmStorage} from 'realm-async-storage';
...
const schemas = [UserSchema, CompanySchema]; // Realm schemas
const onError = (error) => console.error(error); // optional
RealmStorage.setup(schemas, onError)

Methods

  • setup (schemas?: Array): any
  • createItem (key: string, value: Object): Object
  • updateItem (key: string, value: Object): Object
  • deleteItem (item: RealmObject): Promise
  • getItems (key: string, filter: Object | string): Promise<Array | null>
  • removeAll (key: string): Promise
  • convertFilter (filter: Object | string): string
  • checkSchema (key: string)
  • getAllKeys (): Promise<Array>
  • getModel (): any
  • Using

    • Realm-JS 2.18.0

Keywords

FAQs

Package last updated on 26 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc