Skip to content

Refactor Pool #49

@bartlomieju

Description

@bartlomieju

To land #45 I had to disable Pool tests, rendering it unusable. Refactor has to be done to Pool, some initial thoughts:

  • rename PooledClient to PoolClient
  • Pool can be constructed from DSN
  • pool connection can be created lazily
  • size is optional default to 10
  • add Pool.transaction helper that wraps Pool.query in transaction

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions