Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #63 from vapor-community/fix-package-name
Browse files Browse the repository at this point in the history
fix package name in tests
  • Loading branch information
vzsg committed Oct 5, 2017
2 parents 479446f + 5c03f6b commit c071ff5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -3,8 +3,10 @@ matrix:
include:
- os: osx
osx_image: xcode8.3
env: SCHEME="PostgreSQL"
- os: osx
osx_image: xcode9
env: SCHEME="PostgreSQL-Package"

before_install:
- gem install xcpretty
Expand All @@ -23,7 +25,7 @@ script:
# run unit tests
- swift build --configuration release
- swift package generate-xcodeproj
- xcodebuild -scheme PostgreSQL -enableCodeCoverage YES test | xcpretty # instead of swift test
- xcodebuild -scheme $SCHEME -enableCodeCoverage YES test | xcpretty # instead of swift test


after_success:
Expand Down
18 changes: 10 additions & 8 deletions README.md
@@ -1,14 +1,16 @@
# PostgreSQL for Swift

[![Swift](http://img.shields.io/badge/swift-3.1-brightgreen.svg)](https://swift.org)
[![Build Status](https://travis-ci.org/vapor-community/postgresql.svg?branch=master)](https://travis-ci.org/vapor-community/postgresql)
[![Swift](https://img.shields.io/badge/swift-3.1_--_4.0-brightgreen.svg)](https://swift.org)
[![Linux Build Status](https://img.shields.io/circleci/project/github/vapor-community/postgresql.svg?label=Linux)](https://circleci.com/gh/vapor-community/postgresql)
[![macOS Build Status](https://img.shields.io/travis/vapor-community/postgresql.svg?label=macOS)](https://travis-ci.org/vapor-community/postgresql)
[![codecov](https://codecov.io/gh/vapor-community/postgresql/branch/master/graph/badge.svg)](https://codecov.io/gh/vapor-community/postgresql)
[![GitHub license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE)

# PostgreSQL for Swift

# Using PostgreSQL
## Using PostgreSQL

This section outlines how to import the PostgreSQL package both with or without a Vapor project.

## With Vapor
### With Vapor

The easiest way to use PostgreSQL with Vapor is to include the PostgreSQL provider.

Expand All @@ -29,7 +31,7 @@ The PostgreSQL provider package adds PostgreSQL to your project and adds some ad

Using `import PostgreSQLProvider` will import both Fluent and Fluent's Vapor-specific APIs.

## With Fluent
### With Fluent

Fluent is a powerful, pure-Swift ORM that can be used with any Server-Side Swift framework. The PostgreSQL driver allows you to use a PostgreSQL database to power your models and queries.

Expand All @@ -49,7 +51,7 @@ let package = Package(

Use `import PostgreSQLDriver` to access the `PostgreSQLDriver` class which you can use to initialize a Fluent `Database`.

## Just PostgreSQL
### Just PostgreSQL

At the core of the PostgreSQL provider and PostgreSQL driver is a Swift wrapper around the C PostgreSQL client. This package can be used by itself to send raw, parameterized queries to your PostgreSQL database.

Expand Down

0 comments on commit c071ff5

Please sign in to comment.