0.1.0 • Published 9 months ago

squils v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

SQUILS (More like SQL Utils)

squils is a set of tools that aim to make working with sql databases easier

Supported databases

  • Postgres
  • SQLite
  • MySQL

Features

  • Migrations
  • Visualize data
  • Seeding
  • Export data

Contributions are welcome :)

Installation

Download the cli using your favorite

pnpm install -g squils

Usage

Only the migration feature is working that the moment. I plan on adding a new feature every week.

Postgres - Migrations

First of all you will need to create a folder named 'migrations' and you will create your sql files in that folder. Make sure to follow the naming convention for the files which is the following <migrationversion><migration_name>.sql Once done, create a .env file and add your database url inside of it.

DB_URL="postgres://username:password@host/database"

Your folder structure should look like this

migrations/
    00001_create_users.sql
    00001_create_indexes.sql
.env

Now run the squils migrate command and you're good to go. Report any errors you encounter here

0.1.0

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago