db-migrate

command
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

db-migrate copies all tables and data from a local SQLite database to a remote libsql database (e.g. Bunny Database, Turso). It reads the schema from sqlite_master, creates tables on the remote, and inserts all rows in batches. Generic — works with any SQLite DB (appview, hold, etc.).

Usage:

go run ./cmd/db-migrate --local /path/to/local.db --remote "libsql://..." --token "..."
go run ./cmd/db-migrate --local /path/to/local.db --remote "libsql://..." --token "..." --skip-existing

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL