Permalink
Commits on Apr 6, 2011
  1. @solidsnack
Commits on Mar 9, 2011
Commits on Mar 3, 2011
  1. Tweak error handling and clean up loMode

    INV_WRITE is a small lie;  as it is has the same effect as INV_READ | INV_WRITE.
    
    Actually, I don't think the change to loWrite changes much,
    as the lseek shouldn't fail unless the database connection is lost
    or the fd returned an error,   in which case we handled the error
    anyway.   Maybe there is a failure mode of lo_lseek I don't understand.
    
    It seems the real difference is that we avoid a C call in the error
    path.
    committed Mar 3, 2011
  2. First take on mid-level bindings for Large Objects

    TODO:
       1. figure out which foreign imports should be marked safe
       2. move connection out of MVar so that the lock need not be taken.
          (It's probable that several of the functions need not take
           the lock,  e.g. loRead.   But I need to verify this with
           somebody more knowledgable about Postgres and libpq than I.)
       3. Fix error handling on multiple counts
          A. check if returned Oids are zero
          B. handle all error codes appropriately
    committed Mar 3, 2011
Commits on Oct 8, 2010
  1. v0.4.0

    Grant Monroe committed Oct 8, 2010
  2. Revised string handling to avoid memcpy when possible.

    Grant Monroe committed Oct 8, 2010
Commits on Oct 6, 2010
  1. Bumped version to 0.3

    Grant Monroe committed Oct 6, 2010
  2. Use pg_config to determine include and lib dirs

    Grant Monroe committed Oct 6, 2010
Commits on Oct 5, 2010
  1. Updated cabal description and bumped version.

    Grant Monroe committed Oct 5, 2010
  2. Removed -Werror to appease hackage.

    Grant Monroe committed Oct 5, 2010
  3. Removed extraneous import of Foreign.Ptr

    Grant Monroe committed Oct 5, 2010
  4. removed Makefile

    Grant Monroe committed Oct 5, 2010
  5. Added README.md

    Grant Monroe committed Oct 5, 2010
  6. Added connectdb, reset, exec, execParams, prepare, execPrepared, desc…

    …ribePrepared, and describePortal. Revised documentation and code ordering.
    Grant Monroe committed Oct 5, 2010
  7. Added bindings for getCancel and cancel.

    Grant Monroe committed Oct 5, 2010
  8. Added binding for resultErrorField.

    Grant Monroe committed Oct 5, 2010
Commits on Oct 4, 2010
  1. Added binding for clientEncoding.

    Grant Monroe committed Oct 4, 2010
  2. Fix off-by-one bug in unescapeBytea

    Grant Monroe committed Oct 4, 2010
  3. Fix unescapeBytea to use useAsCString.

    Grant Monroe committed Oct 4, 2010
  4. Renamed ResultStatus to ExecStatus, implemented resStatus, nparams, p…

    …aramtype, and added Column and Row newtypes to help avoid silly mistakes.
    Grant Monroe committed Oct 4, 2010
Commits on Oct 1, 2010
  1. Added .gitignore file

    Grant Monroe committed Oct 1, 2010
  2. Added bindings for transactionStatus, parameterStatus, protocolVersio…

    …n, serverVersion, connectionNeedsPassword, and connectionUsedPassword.
    Grant Monroe committed Oct 1, 2010
  3. Got rid of connectdb, reset, execParams, prepare, and execPrepared. U…

    …se MVar and Maybe to deal with closed connections.
    Grant Monroe committed Oct 1, 2010
Commits on Sep 29, 2010
  1. Check status before calling connectPoll in connectdb and call connWai…

    …tWrite before resetPoll in reset.
    Grant Monroe committed Sep 29, 2010
  2. Added Setup.hs

    Grant Monroe committed Sep 29, 2010
  3. Added BSD3 liscence file.

    Grant Monroe committed Sep 29, 2010
  4. Document connectPoll and fix connectdb to call connWaitWrite before c…

    …alling connectPoll for the first time.
    Grant Monroe committed Sep 29, 2010
  5. Added documentation, cabal file, and got rid of failErrorMessage.

    I got rid of failErrorMessage in favor of returning booleans or Maybe x return types. I also fixed the symantics of the exec calls to return the LAST available result.
    Grant Monroe committed Sep 29, 2010
Commits on Sep 28, 2010
  1. Wrapped fformat, ftype, fmod, fsize, getvalue, getisnull, getlength, …

    …print
    Grant Monroe committed Sep 28, 2010