Skip to content

FullQueueDeveloper/ShLocalPostgres

trunk
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
 
 
 
 

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

No packages published

Languages