New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ejdb2_react_native

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ejdb2_react_native

EJDB2 React Native binding

  • 2.70.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
Maintainers
1
Weekly downloads
 
Created
Source

EJDB2 React Native binding

Embeddable JSON Database engine http://ejdb.org Node.js binding.

See https://github.com/Softmotions/ejdb/blob/master/README.md

Note on versioning

Since 2020-12-22 a new version scheme is used and the major version of package has been incremented. Now package version is the concatenation of ejdb2 core engine version and version serial number of this binding. For example: given ejdb2 version 2.0.52 and binding serial 2 the actual package version will be 2.0.522.

Prerequisites

  • React native 0.61+
  • Yarn package manager

Status

  • Android
  • OSX not yet implemented, work in progress.

Getting started

yarn add ejdb2_react_native

react-native link ejdb2_react_native

Usage

import { EJDB2, JBE } from 'ejdb2_react_native';

// Simple query
const db = await EJDB2.open('hello.db');
await db.createQuery('@mycoll/[foo = :?]')
        .setString(0, 'bar')
        .useExecute(doc => {
  const doc = doc.json;
  console.log(`Document: `, doc);
});

db.close();

See API docs and Tests;

How build it manually

mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release \
         -DBUILD_REACT_NATIVE_BINDING=ON \
         -DANDROID_NDK_HOME=<path to Android NDK> \
         -DANDROID_ABIS="x86;x86_64;arm64-v8a;armeabi-v7a"

Testing

mkdir build && cd build

cmake .. -DCMAKE_BUILD_TYPE=Release \
          -DBUILD_REACT_NATIVE_BINDING=ON \
          -DANDROID_NDK_HOME=<path to Android NDK> \
          -DANDROID_ABIS="x86" \
          -DANDROID_AVD=TestingAVD \
          -DBUILD_TESTS=ON

ctest

Keywords

FAQs

Package last updated on 14 Feb 2022

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