Permalink
Commits on Jan 17, 2017
  1. Bigint (int8) tweaks (#48) (#53)

    * First pass at bigint
    
    * Added test
    
    * Swapped 64-bit int support condition
    
    * Updating transpiled lua file
    ttfkam committed with Jan 17, 2017
Commits on Jan 15, 2017
  1. Create LICENSE (#51)

    Fale committed with Jan 15, 2017
Commits on Nov 26, 2016
Commits on Nov 8, 2016
  1. version bump 👏

    committed Nov 8, 2016
  2. fix(ssl) use proper sslhandshake signature in ngx_lua (#41)

    ngx_lua's API being quite strict, it refuses additional arguments to
    most of its function and errors out instead of discarding them like it
    is mostly the case for the standard Lua library functions.
    
    A related discussion on the topic can be found at:
    openresty/lua-nginx-module#850
    
    Fix #39
    thibaultcha committed with Nov 8, 2016
Commits on Oct 21, 2016
  1. that's why

    committed Oct 21, 2016
  2. add unpack

    committed Oct 21, 2016
  3. why were these commented out?

    committed Oct 21, 2016
  4. add cqueues to build

    committed Oct 21, 2016
  5. update readme for cqueues

    committed Oct 21, 2016
  6. preliminary cqueues support

    committed Oct 21, 2016
  7. version bump :bowtie:

    committed Oct 21, 2016
  8. document pool option, closes #35

    committed Oct 21, 2016
Commits on Sep 29, 2016
Commits on Sep 26, 2016
  1. more decode specs #32

    committed Sep 26, 2016
  2. parse to end of string

    committed Sep 26, 2016
  3. update hstore docs

    committed Sep 26, 2016
  4. hstore type encoding and decoding (#32)

    * add hstore encoding and decoding
    allow setting hstore oid for automatic serialization
    
    * update readme for hstore useage
    
    * add hstore to pgmoon-dev-1.rockspec
    
    * allow tests to pass regardless of the order of the lua table iteration
    edan committed with Sep 26, 2016
  5. feat(pg) support for setting socket timeout (#33)

    Add a wrapper for cosockets' `settimeout()` function. When using
    LuaSocket, we make sure to divide the given value since the precision is
    'seconds'.
    
    * add `settimeout` override function to LuaSocket's proxy table
    * create socket in `new()`, so users have a chance to set the timeout
      before the initial connection
    thibaultcha committed with Sep 26, 2016
Commits on Jul 21, 2016
  1. version bump 😮

    committed Jul 21, 2016
Commits on Jul 13, 2016
  1. sort rockspec

    committed Jul 13, 2016
  2. version bump 💥

    committed Jul 13, 2016
Commits on Jun 29, 2016
  1. missing assert

    committed Jun 29, 2016
  2. add luasec

    committed Jun 29, 2016
  3. add ssl specs

    committed Jun 29, 2016
  4. feat: implement support for SSL connections

    Implements client-server SSL connection. We assume to be in an ngx_lua
    environment, where 'tcpsock:sslhandshake()' is available. ngx_lua only
    supports server authentication via 'lua_ssl_trusted_certificate'.
    
    In plain Lua/JIT, we rely on LuaSec (the same way we rely on LuaSocket
    already) and a fallback method is provided which follows the ngx_lua
    method signature, plus accept LuaSec options. LuaSec allows for server
    and client authentication.
    
    An option is provided to require that the server supports SSL,
    otherwise, aborts the connection.
    
    New options (defaults):
    
    ```
    {
      ssl = false,
      ssl_verify = false,
      ssl_required = false,
      cafile = nil, -- LuaSec
      cert = nil, -- LuaSec,
      key = nil -- LuaSec
    }
    ```
    
    Caveats:
    
    - One change had to be done: the LuaSocket proxy metatable does not
      cache its original methods anymore. If it does, the old socket is
      retained from previous calls to 'send()' or 'receive()', and since
      LuaSec closes the socket when wrapping it, further calls do not
      succeed anymore.
    - Not easily testable in CI and test suite. I added a simple test,
      but `ssl_required` and other options are harder to test on Travis. I
      tested all options manually with Lua and ngx_lua, on a server that
      does not accept non-SSL connections.
    thibaultcha committed with Feb 26, 2016
Commits on Jun 15, 2016
  1. try again

    committed Jun 15, 2016