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

github.com/chirpstack/chirpstack-pg-to-sqlite

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/chirpstack/chirpstack-pg-to-sqlite

  • v0.0.0-20241105120907-e0ff0c9e505b
  • Source
  • Go
  • Socket score

Version published
Created
Source

ChirpStack PostgreSQL to SQLite script

This script connects to a ChirpStack PostgreSQL database, reads the data and writes this into s SQLite database. It is intended to migrate the ChirpStack Gateway OS (full) image from PostgreSQL to SQLite.

Usage

CLI

Usage of ./chirpstack-pg-to-sqlite:
  -postgres-dsn string
        PostgreSQL DSN (default "postgres://chirpstack:chirpstack@localhost/chirpstack?sslmode=disable")
  -sqlite-path string
        Path to SQLite directory (default "chirpstack.sqlite")

Important:

  • The target SQLite database needs to be already initialized with the proper schema. You can use the chirpstack.empty.sqlite as a skeleton.
  • This script will remove all data from the target SQLite database.

ChirpStack Gateway OS

In the web-interface, under System > Software, click the Upload package button and upload the .ipk package. This will automatically migrate the PostgreSQL database to SQLite (leaving the PostgreSQL database as-is).

Building from source

# Build for current architecture
make build

# Build ChirpStack Gateway OS (ARMv7) package
make build-gateway-os

Changelog

v4.0.0

Initial release compatible with ChirpStack v4.9.0 database schema, ChirpStack Gateway OS v4.5.x.

License

This script is distributed under the MIT license. See also LICENSE.

FAQs

Package last updated on 05 Nov 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