https://github.com/solidsnack/dispatchpq
Swift concurrent Postgres API, using Grand Central
https://github.com/solidsnack/dispatchpq
Last synced: about 2 months ago
JSON representation
Swift concurrent Postgres API, using Grand Central
- Host: GitHub
- URL: https://github.com/solidsnack/dispatchpq
- Owner: solidsnack
- License: isc
- Created: 2016-07-21T12:17:15.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-25T12:13:58.000Z (almost 10 years ago)
- Last Synced: 2025-12-25T13:45:55.719Z (6 months ago)
- Language: Swift
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
For example:
```
:; make
swift build -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib
:; make repl
swift build -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib
1> import DispatchPQ
2> let c = Connection()
c: DispatchPQ.Connection = {
conninfo = "postgres:///"
cxn = 0x0000000100a077d0
cancelToken = {
canceller = 0x0000000100905390
}
notifications = 0 values
queue = {}
clientThread = nil
cookie = 2491638743
}
3> c.query("SHOW data_directory")
$R0: DispatchPQ.Rows = {
res = 0x0000000100b00480 -> 0x0000000100000001 repl_swift`_mh_execute_header + 1
}
4> c.query("SHOW data_directory").data()
$R1: [[String?]] = 1 value {
[0] = 1 value {
[0] = "/usr/local/var/postgres"
}
}
```