New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

powersync-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. Sending to the client.

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

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

Specifically:

  1. The SQLite type system makes a distinction between INTEGER and REAL values. We try to preserve this.
  2. 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

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