📦 Parent to the Datastore Trailpacks (waterline, bookshelf, sequelize, etc)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api
lib
test
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

trailpack-datastore

Note: Deprecated as of v3. See trailsjs/trailpack/datastore.js.

Gitter NPM version Build status Dependency Status Code Climate Follow @trailsjs on Twitter

Parent to the Datastore Trailpacks (waterline, bookshelf, sequelize, etc).

Usage

Datastore Trailpacks should extend this Trailpack. For example, trailpack-waterline is implemented thus:

const DatastoreTrailpack = require('trailpack-datastore')
class WaterlineTrailpack extends DatastoreTrailpack {
  // ...
}

Configuration

migrate

none

Do not perform any schema migration.

create

Create any new tables/columns, but do not alter any existing tables or columns.

alter

Alter the schema to match the new schema of the Models.

drop

Drop all tables and re-create them.

Contributing

We love contributions! Please check out our Contributor's Guide for more information on how our projects are organized and how to get started.

License

MIT