Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pg-query-stream module #2035

Merged
merged 80 commits into from
Dec 23, 2019
Merged

Add pg-query-stream module #2035

merged 80 commits into from
Dec 23, 2019

Commits on Oct 22, 2013

  1. Initial commit

    brianc committed Oct 22, 2013
    Configuration menu
    Copy the full SHA
    722296f View commit details
    Browse the repository at this point in the history
  2. Remove bad code

    brianc committed Oct 22, 2013
    Configuration menu
    Copy the full SHA
    5400dfe View commit details
    Browse the repository at this point in the history
  3. Bump version

    brianc committed Oct 22, 2013
    Configuration menu
    Copy the full SHA
    cc20d98 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    48687fc View commit details
    Browse the repository at this point in the history
  5. Bump version

    brianc committed Oct 22, 2013
    Configuration menu
    Copy the full SHA
    aec85ce View commit details
    Browse the repository at this point in the history
  6. Add in proper error handling

    brianc committed Oct 22, 2013
    Configuration menu
    Copy the full SHA
    1b249e9 View commit details
    Browse the repository at this point in the history
  7. Bump version

    brianc committed Oct 22, 2013
    Configuration menu
    Copy the full SHA
    5888135 View commit details
    Browse the repository at this point in the history
  8. Update npm test command

    brianc committed Oct 22, 2013
    Configuration menu
    Copy the full SHA
    278c5ce View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2013

  1. Configuration menu
    Copy the full SHA
    33be525 View commit details
    Browse the repository at this point in the history
  2. Bump version

    brianc committed Oct 23, 2013
    Configuration menu
    Copy the full SHA
    0ebd4c3 View commit details
    Browse the repository at this point in the history

Commits on Dec 25, 2013

  1. Emit 'close' events when query completes

    Consider a system where one component is scheduling tasks that yield
    streams, and passing them to (unknown) clients for consumption.
    
    It would be useful for the scheduler to know that the query
    underlying the stream is completed (so it can continue on to it's
    next task) without having to wait for the consumer to finish reading
    all results.
    grncdr committed Dec 25, 2013
    Configuration menu
    Copy the full SHA
    e111715 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2014

  1. Add cleanup to the example

    closes #2
    brianc committed Jan 31, 2014
    Configuration menu
    Copy the full SHA
    0df516c View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2014

  1. Merge pull request #1 from grncdr/patch-1

    Emit 'close' events when query completes
    brianc committed Feb 26, 2014
    Configuration menu
    Copy the full SHA
    0ed940c View commit details
    Browse the repository at this point in the history
  2. Port tests to use mocha

    brianc committed Feb 26, 2014
    Configuration menu
    Copy the full SHA
    2909062 View commit details
    Browse the repository at this point in the history
  3. Remove Makefile

    brianc committed Feb 26, 2014
    Configuration menu
    Copy the full SHA
    f8f2a92 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b66be5e View commit details
    Browse the repository at this point in the history
  5. Bump version

    brianc committed Feb 26, 2014
    Configuration menu
    Copy the full SHA
    122bcfb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    37de9c2 View commit details
    Browse the repository at this point in the history
  7. Bump version

    brianc committed Feb 26, 2014
    Configuration menu
    Copy the full SHA
    0a7da37 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2014

  1. Update pg-cursor

    pg-cursor no longer returns the empty array 'done' signal to the callback
    until the cursor recieves a readyForQuery message.  This means pg-query-stream
    will not emit 'close' or 'end' events until the server is __truly__ ready for
    the next query.  This fixes some race-conditions where some queries
    are triggered off of the `end` event of the query-stream
    
    closes #3
    brianc committed Mar 21, 2014
    Configuration menu
    Copy the full SHA
    1961125 View commit details
    Browse the repository at this point in the history
  2. Bump version

    brianc committed Mar 21, 2014
    Configuration menu
    Copy the full SHA
    0f13c80 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2014

  1. adds failing test

    - appears that timestamp queries emit a lot of `rows` with length == 0
    - `self.once('end')` is added each of these times
    - assertion on listener count shows that more than 10 listeners are applied
    tbuchok committed Apr 10, 2014
    Configuration menu
    Copy the full SHA
    87b52f9 View commit details
    Browse the repository at this point in the history
  2. passes stream-tester-timestamp

    - moves 'end' event listener to constructor, only listen once
    - ensures all existing tests still green
    tbuchok committed Apr 10, 2014
    Configuration menu
    Copy the full SHA
    cab956b View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2014

  1. Merge pull request #4 from tbuchok/master

    maxListeners on timestamp queries
    brianc committed Apr 11, 2014
    Configuration menu
    Copy the full SHA
    d82386e View commit details
    Browse the repository at this point in the history
  2. Bump version

    brianc committed Apr 11, 2014
    Configuration menu
    Copy the full SHA
    7593a44 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2014

  1. fix up tests

    calvinmetcalf committed May 14, 2014
    Configuration menu
    Copy the full SHA
    41b7d7d View commit details
    Browse the repository at this point in the history
  2. clean ups

    calvinmetcalf committed May 14, 2014
    Configuration menu
    Copy the full SHA
    fec0909 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2014

  1. Update version of pg-cursor

    brianc committed May 22, 2014
    Configuration menu
    Copy the full SHA
    e242b94 View commit details
    Browse the repository at this point in the history
  2. Bump version

    brianc committed May 22, 2014
    Configuration menu
    Copy the full SHA
    99fe666 View commit details
    Browse the repository at this point in the history
  3. merge it

    calvinmetcalf committed May 22, 2014
    Configuration menu
    Copy the full SHA
    6763e09 View commit details
    Browse the repository at this point in the history
  4. deps

    calvinmetcalf committed May 22, 2014
    Configuration menu
    Copy the full SHA
    adf86b8 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #5 from calvinmetcalf/fixes

    fix tests, clean up a few things
    brianc committed May 22, 2014
    Configuration menu
    Copy the full SHA
    7fb1f50 View commit details
    Browse the repository at this point in the history
  6. Bump version

    brianc committed May 22, 2014
    Configuration menu
    Copy the full SHA
    df63cbb View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2014

  1. Configuration menu
    Copy the full SHA
    6ab80d3 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2014

  1. Merge pull request #7 from brianc/add-close-method

    Is it possible to destroy the stream?
    brianc committed Nov 3, 2014
    Configuration menu
    Copy the full SHA
    0b45eda View commit details
    Browse the repository at this point in the history
  2. Add infrastructure files

    brianc committed Nov 3, 2014
    Configuration menu
    Copy the full SHA
    1dd2d3a View commit details
    Browse the repository at this point in the history
  3. Bump version

    brianc committed Nov 3, 2014
    Configuration menu
    Copy the full SHA
    02ff00a View commit details
    Browse the repository at this point in the history
  4. Update README.md

    Add travis badge
    brianc committed Nov 3, 2014
    Configuration menu
    Copy the full SHA
    aa61055 View commit details
    Browse the repository at this point in the history
  5. Update travis file

    brianc committed Nov 3, 2014
    Configuration menu
    Copy the full SHA
    b38d092 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    52f5c70 View commit details
    Browse the repository at this point in the history
  7. Test new travis config

    brianc committed Nov 3, 2014
    Configuration menu
    Copy the full SHA
    e9d1872 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2015

  1. Avoid race when stream closed while fetching

    matthew.blasius committed Nov 5, 2015
    Configuration menu
    Copy the full SHA
    68819df View commit details
    Browse the repository at this point in the history
  2. Support a close callback when closing the stream

    matthew.blasius committed Nov 5, 2015
    Configuration menu
    Copy the full SHA
    d1ac31c View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2015

  1. Conform to readable stream spec

    One of the tests was failing because it was testing that when a stream became readable it never returned a `null` datum on call to `stream.read()`.
    
    In fact, when a readable stream drains it should & does return `null` for calls to `stream.read()` as described [here](https://nodejs.org/api/stream.html#stream_event_readable)
    
    I updated the test to account for this, and they pass now.
    brianc committed Nov 13, 2015
    Configuration menu
    Copy the full SHA
    27bba8d View commit details
    Browse the repository at this point in the history
  2. Merge pull request #16 from brianc/conform-to-readable-stream-spec

    Conform to readable stream spec
    brianc committed Nov 13, 2015
    Configuration menu
    Copy the full SHA
    edfe1aa View commit details
    Browse the repository at this point in the history
  3. Merge pull request #15 from slickmb/bug/close_race

    Avoid race when stream closed while fetching
    brianc committed Nov 13, 2015
    Configuration menu
    Copy the full SHA
    ca21462 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9aca077 View commit details
    Browse the repository at this point in the history
  5. Bump version

    brianc committed Nov 13, 2015
    Configuration menu
    Copy the full SHA
    df8acf0 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #17 from brianc/more-travis-versions

    Add more versions of node to the travis matrix
    brianc committed Nov 13, 2015
    Configuration menu
    Copy the full SHA
    aa72d9b View commit details
    Browse the repository at this point in the history
  7. Update README.md

    Remove outdated information about pg.js
    brianc committed Nov 13, 2015
    Configuration menu
    Copy the full SHA
    802616b View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2017

  1. Configuration menu
    Copy the full SHA
    2a46c8a View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2017

  1. Merge pull request #22 from abenhamdine/master

    Add node LTS and current versions to travis matrix
    brianc authored Apr 24, 2017
    Configuration menu
    Copy the full SHA
    c9e21f4 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2017

  1. WIP

    brianc committed Aug 5, 2017
    Configuration menu
    Copy the full SHA
    e517b8c View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2017

  1. Eslint

    brianc committed Aug 6, 2017
    Configuration menu
    Copy the full SHA
    b1f8f8d View commit details
    Browse the repository at this point in the history
  2. Merge pull request #29 from brianc/upgrade-pg-cursor

    Upgrade to newest version of pg-cursor
    brianc authored Aug 6, 2017
    Configuration menu
    Copy the full SHA
    57f62df View commit details
    Browse the repository at this point in the history
  3. Bump version

    brianc committed Aug 6, 2017
    Configuration menu
    Copy the full SHA
    465ac5c View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2017

  1. Configuration menu
    Copy the full SHA
    17e19e5 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #33 from brianc/eslint-deps

    Move eslint to dev dependencies
    brianc authored Aug 9, 2017
    Configuration menu
    Copy the full SHA
    090b759 View commit details
    Browse the repository at this point in the history
  3. Bump version

    brianc committed Aug 9, 2017
    Configuration menu
    Copy the full SHA
    e762b48 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2018

  1. Fix for [email protected] (#47)

    * Fix for [email protected]
    
    Don't return anything from `stream.submit`
    
    * Add node@10 to travis version
    
    * Relax version of [email protected]
    brianc authored Oct 8, 2018
    Configuration menu
    Copy the full SHA
    2446fdb View commit details
    Browse the repository at this point in the history
  2. Bump version

    brianc committed Oct 8, 2018
    Configuration menu
    Copy the full SHA
    6177ff9 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2019

  1. Updated readme examples to es6 (#36)

    amilajack authored and brianc committed Jan 8, 2019
    Configuration menu
    Copy the full SHA
    c999aae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d822fc8 View commit details
    Browse the repository at this point in the history
  3. Create LICENSE (#34)

    amilajack authored and brianc committed Jan 8, 2019
    Configuration menu
    Copy the full SHA
    28e43b8 View commit details
    Browse the repository at this point in the history
  4. Bump version of pg-cursor

    brianc committed Jan 8, 2019
    Configuration menu
    Copy the full SHA
    5b2816a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7d27bd2 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2019

  1. Upgrade dependencies (#59)

    * Upgrade dependencies
    
    - There was a security vuln with mocha, so upgraded mocha.
    - Upgraded versions of node we're going to check in travis
    - Switched to yarn from npm
    - Removed --no-exit as that's standard mocha behavior now
    
    * Enable postgres on newer version of travis
    brianc authored Oct 28, 2019
    Configuration menu
    Copy the full SHA
    c95a650 View commit details
    Browse the repository at this point in the history
  2. fixed typo cumbersom (#49)

    mandyreal authored and brianc committed Oct 28, 2019
    Configuration menu
    Copy the full SHA
    e153e3f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fb52c52 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a756ee3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a84db5f View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2019

  1. Bump version of pg-cursor (#64)

    This includes fixes in [email protected].  I've relaxed semver a touch so I don't have to release a new version here just for patch changes to pg-cursor.
    brianc authored Oct 30, 2019
    Configuration menu
    Copy the full SHA
    3e59f28 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    05b4c57 View commit details
    Browse the repository at this point in the history
  3. Pass options to cursor (#65)

    * Bump version of pg-cursor
    
    This includes fixes in [email protected].  I've relaxed semver a touch so I don't have to release a new version here just for patch changes to pg-cursor.
    
    * Pass options to pg-cursor
    
    fixes #55
    brianc authored Oct 30, 2019
    Configuration menu
    Copy the full SHA
    08072a9 View commit details
    Browse the repository at this point in the history
  4. Bump version

    brianc committed Oct 30, 2019
    Configuration menu
    Copy the full SHA
    9ced05e View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2019

  1. Add 'packages/pg-query-stream/' from commit '9ced05e8aab65f3fdf1a67ad…

    …d87bfc9035e487e8'
    
    git-subtree-dir: packages/pg-query-stream
    git-subtree-mainline: cccf84e
    git-subtree-split: 9ced05e
    brianc committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    db1b95e View commit details
    Browse the repository at this point in the history
  2. Run gitsubtree merge

    brianc committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    8607302 View commit details
    Browse the repository at this point in the history
  3. Unify lint

    Delete accidental addition
    brianc committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    ef2f2d2 View commit details
    Browse the repository at this point in the history
  4. Do not run tests in parallel

    brianc committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    6b7b8d1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fdae851 View commit details
    Browse the repository at this point in the history