Skip to content

nerdlem/schema-skel

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
db
 
 
 
 
 
 

Schema-skel, a database application skeleton

This is a baseline example that should be useful to start projects involving a relational database schema. For this particular case, a PostgreSQL database is assumed. Other database engines can be supported by making the relevant changes in the enclosed Makefile.

This skeleton is language agnostic as it only concerns with deploying a static database schema. In particular, this skeleton has been used without changes to support projects written in Perl and Go.

To start your project, simply clone this and start adding your database / programming code.

You might want to install the pgtap PostgreSQL extension and the pg_prove tool to get a working installation that is able to test itself.

See this article for a detailed discussion on how to channel your database changes through deltas.

The first versions of this skeleton were based in GNU Make. While this can still be used, I am gravitating towards a script based deployment for various reasons explained in the post.

Namespaces

This schema sckeleton has been augmented so as to create two namespaces (SCHEMA in PostgreSQL parlance). This is meant to assist with the use of the PostgREST tool.

About

Skeleton for the database tidbits of a new project, including managing schema changes, deployment and testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published