Skip to content

DanielSincere/ShLocalPostgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShLocalPostgres

Commands for setting up local Postgres databases. Pairs well with Sh & Swish!

Example

let config = LocalPostgres(role: "fqauth",
                           password: "FQAuthPassword123",
                           databaseStem: "fqauth",
                           databaseTails: ["development", "testing"])

then

try config.createAll() // Will create "fqauth_development" & "fqauth_testing" and the role "fqauth"                                           

or

try config.destroyAll() // Will destroy "fqauth_development" & "fqauth_testing" and the role "fqauth"   

Getting started

In your Package.swift

  dependencies: [
    // ...
    .package(url: "https://github.com/FullQueueDeveloper/ShLocalPostgres.git", from: "0.1.0"),

And then in the target's dependencies:

  dependencies: [
      // ...
      "ShLocalPostgres"
  ]

About

Commands for setting up local postgres

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages