Project organization

Projects

File

Content

[project]
version = "0.1.0"
title = "my_project"

[database]
db = "postgres" # will be "sqlite" if you're using sqlite

Directory

create table users (
    pk integer primary key auto increment,
    username text unique not null,
    password text not null
);

Directory

Directory

[[migrations]]
script = "schema.sql"
from = "=0.0.0"
to = "0.1.0"
-- [ my_project 0.1.0 ]

-- [ users.sql ]

create table users (
    pk integer primary key auto increment,
    username text unique not null,
    password text not null
);

Scripts

Modules

Artifacts

Manifests

Project manifest

[project]
version = "0.1.0"
title = "my_project"

[database]
db = "postgres"

Module manifests

[module]
dependencies = ["resources/"]

[[scripts]]
script = "posts.sql"
dependencies = ["users.sql"]

Artifact manifests

[[migrations]]
script = "schema.sql"
from = "=0.0.0" # The versions this migration is compatible with.
to = "0.1.0" # The version the migration moves the database to.

Dependencies

Implicit dependencies

Module-level dependencies

Script-level dependencies

Starting a new project

File

Content

[project]
version = "0.1.0"
title = "my_project"

[database]
db = "postgres" # will be "sqlite" if you're using sqlite

Directory

Directory