目录
目录README.md

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)
关于
42.0 KB
邀请码