Crates.io | trso-migrator |
lib.rs | trso-migrator |
version | 0.1.0 |
source | src |
created_at | 2024-06-15 13:51:06.177161 |
updated_at | 2024-06-15 13:51:06.177161 |
description | Simple and easy migrator for Turso |
homepage | |
repository | https://github.com/oneslash/trso-migrator |
max_upload_size | |
id | 1272901 |
size | 60,557 |
TRSO migrator is a simple cli application which applies SQL files from a folder set in the environment variables to the local or remote Turso database.
The main objective of the CLI is to be able to quickly work on your hobby projects. It was created purely for my personal needs, but feel free to use and send PRs.
The CLI on the first run creates migrations
table and writes there applied migrations files, the files are going to run by the alphabetical order of the filename.
Name | Default Value | Description |
---|---|---|
TRSO_LOCAL |
- | Local database or remote flag |
TRSO_PATH_URL |
- | File path or the url of the remote |
TRSO_TOKEN |
- | Must be set if TRSO_LOCAL is true |
TRSO_MIGRATIONS_PATH |
<CURRENT_WORKING_DIR> /migrations/ |
Folder where the migration files are located |