Skip to content

PostgreSQL client in pure Swift

License

Notifications You must be signed in to change notification settings

swiftstack/postgresql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostgreSQL

Asynchronous client in pure Swift

.package(url: "https://github.com/swiftstack/postgresql.git", .branch("dev"))

Usage

import PostgreSQL

let client = PostgreSQL.Client(host: "127.0.0.1", port: 5432)
try await client.connect(user: "postgres")
let result = try await client.query("select * from rows;")
print(result)
$ swift run