Skip to content

NWBY/schmake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

schmake

Save time creating your SQL schema with less keystrokes and the speed of Rust.

Note

Schmake currently only supports PostgreSQL

Usage

Create your first .schm file:

touch users.schm

Write the schema for your users table:

table users
id serial pk
team_id int fk teams(id)
name varchar
email varchar unique

Run schmake on that file:

schmake --file ./users.schm

And magic, you now have the definition for your users table

Constraints

Schmake provides a number of aliases for common constraints

  • PRIMARY KEY
    • pk
  • references
    • fk
  • NOT NULL
    • nn
    • not null

About

SQL schema generator built with Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages