Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 536 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 536 Bytes

SwiftSQL

Currently, SwiftSQL support PostgreSQL, MySQL and SQLite are coming soon.

Install

.Package(url: "https://github.com/tuanphung/SwiftSQL", majorVersion: 1)

Ensure that you have installed libpq (http://www.postgresql.org/download/)

Usage

import SwiftSQL

let sql = SQL.open(.Postgre, connectionString: "user=test dbname=tuanphung sslmode=disable")

if (sql.status() == .Connected) {
	print("Connected postgre database...")
	
	// Execute query
	sql.execute("select * from tableName")
}