You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@powersync/service-jsonbig

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@powersync/service-jsonbig

JSON is used everywhere, including: 1. PostgreSQL (json/jsonb types) 2. Sync rules input (values are normalized to JSON text). 3. Sync rule transformations (extracting values, constructing objects in the future) 4. Persisting data in the database. 5. Send

0.17.10
latest
Source
npmnpm
Version published
Maintainers
2
Created
Source

powersync-jsonbig

JSON is used everywhere, including:

  • PostgreSQL (json/jsonb types)
  • Sync rules input (values are normalized to JSON text).
  • Sync rule transformations (extracting values, constructing objects in the future)
  • Persisting data in the database.
  • Sending to the client.

Where we can, JSON data is kept as strings and not parsed. This is so that:

  • We don't add parsing / serializing overhead.
  • We don't change the data.

Specifically:

  • The SQLite type system makes a distinction between INTEGER and REAL values. We try to preserve this.
  • Integers in SQLite can be up to 64-bit.

For this, we use a custom parser, and use BigInt for all integers, and number for floats.

FAQs

Package last updated on 30 May 2024

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