Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 6, 2011
  1. Jason Dusek
Commits on Mar 9, 2011
Commits on Mar 3, 2011
  1. Tweak error handling and clean up loMode

    authored
    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.
  2. First take on mid-level bindings for Large Objects

    authored
    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
Commits on Oct 8, 2010
  1. v0.4.0

    Grant Monroe authored
  2. Revised string handling to avoid memcpy when possible.

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

    Grant Monroe authored
  2. Use pg_config to determine include and lib dirs

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

    Grant Monroe authored
  2. Removed -Werror to appease hackage.

    Grant Monroe authored
  3. Removed extraneous import of Foreign.Ptr

    Grant Monroe authored
  4. removed Makefile

    Grant Monroe authored
  5. Added README.md

    Grant Monroe authored
  6. Added connectdb, reset, exec, execParams, prepare, execPrepared, desc…

    Grant Monroe authored
    …ribePrepared, and describePortal. Revised documentation and code ordering.
  7. Added bindings for getCancel and cancel.

    Grant Monroe authored
  8. Added binding for resultErrorField.

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

    Grant Monroe authored
  2. Fix off-by-one bug in unescapeBytea

    Grant Monroe authored
  3. Fix unescapeBytea to use useAsCString.

    Grant Monroe authored
  4. Renamed ResultStatus to ExecStatus, implemented resStatus, nparams, p…

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

    Grant Monroe authored
  2. Added bindings for transactionStatus, parameterStatus, protocolVersio…

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

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

    Grant Monroe authored
    …tWrite before resetPoll in reset.
  2. Added Setup.hs

    Grant Monroe authored
  3. Added BSD3 liscence file.

    Grant Monroe authored
  4. Document connectPoll and fix connectdb to call connWaitWrite before c…

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

    Grant Monroe authored
    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.
Commits on Sep 28, 2010
Something went wrong with that request. Please try again.