Swiftpack.co - Package - mihaelamj/VaporSpices

VaporSpices

Vapor 3 Package for pre-populating any database with Spice related data.

Import it into your project:

let package = Package(name: "TestVaporSpices",
dependencies: [      
//VaporSpices
  .package(url: "https://github.com/mihaelamj/VaporSpices", from: "0.1.0")
],
targets: [
  .target(name: "App", dependencies: ["FluentSQLite", "FluentMySQL", "FluentPostgreSQL", "VaporSpices"]),
]
)

Usage (for MySQL) :

import VaporSpices

migrations.addVaporSpices(for: .mysql)

Usage (for PostgreSQL) :

import VaporSpices

migrations.addVaporSpices(for: .psql)

Usage (for SQLite) :

import VaporSpices

migrations.addVaporSpices(for: .sqlite)

Github

link
Stars: 1
Help us keep the lights on

Dependencies

Used By

Total: 0