Skip to content

tuanphung/SwiftSQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published