Skip to content

Swift concurrent Postgres API, using Grand Central

License

Notifications You must be signed in to change notification settings

solidsnack/DispatchPQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Swift concurrent Postgres API, using Grand Central

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published