Skip to content

Releases: ForbesLindesay/atdatabases

@databases/[email protected]

21 Dec 18:06
45fbef7
Compare
Choose a tag to compare

New Features

  • Initial release (#206)

@databases/[email protected]

21 Dec 18:06
45fbef7
Compare
Choose a tag to compare

Breaking Changes

  • Update the default image for tests to mysql:8.0.23 (#206)

    If you are using the @databases/mysql-test package to create temporary databases, you will now get version 8.0.23 by default. If you want to maintain the old behaviour, you need to specify:

    {
      "test": {
        "image": "mysql:5.7.24"
      }
    }

    in your mysql config.

New Features

  • Add config for type generation (#206)

  • Add readMySqlConfigSync method (#206)

    This lets you read MySQL config for a specific file

  • Add DEFAULT_CONFIG export (#206)

@databases/[email protected]

23 Nov 09:38
0e1a033
Compare
Choose a tag to compare

New Features

  • Export pgFormat (#202)

@databases/[email protected]

23 Nov 09:38
0e1a033
Compare
Choose a tag to compare

Breaking Changes

  • Block unexpected fields on .insert(...) calls (#203)

    This update uses conditional types in TypeScript to produce a type error if you add extra fields to objects you pass to .insert(...) that are not defined in the database schema.

New Features

  • Add tableName property to Table (#202)

  • Add tableId property to Table (#202)

@databases/[email protected]

15 Nov 13:22
3291185
Compare
Choose a tag to compare

New Features

  • Automatically handle connection limit exceeded errors (#201)

    This automatically handles the error:

    too many connections for role "role_name"

    from Postgres, providing we were able to create at least 1 connection for the pool. It will attempt to create connections again 5 seconds after encountering this error.

@databases/[email protected]

15 Nov 13:22
3291185
Compare
Choose a tag to compare

New Features

  • Automatically handle connection limit exceeded errors (#201)

    If you provide the isConnectionLimitError option, it is used to test any error returned by openConnection. If the error is a connection limit error, we reduce the max size of the connection pool temporarily. You can control how long the connection pool size is reduced for using the connectionLimitBackoffMilliseconds option, which defaults to 5_000

@databases/[email protected]

01 Sep 14:24
328b587
Compare
Choose a tag to compare

Bug Fixes

  • Connections were not closed properly when an error occurred in a connection that was not currently in use. (#189)

@databases/[email protected]

01 Sep 14:24
328b587
Compare
Choose a tag to compare

New Features

  • Add "replace" filter as a config option (#191)

    The replace filter accepts two JSON strings as parameters. The first is a regular expression to match in the table name, and the second is a string to use as the replacement. You can also use $1, $2 etc. to reference captured groups from the regular expression.

    For example, if all your table names were prefixed with my_, and you wanted to remove that prefix, you could do something like:

    {
      "tableTypeName": "{{ TABLE_NAME | replace \"^my_\" \"\" | singular | pascal-case }}"
    }

@databases/[email protected]

01 Sep 14:24
328b587
Compare
Choose a tag to compare

Bug Fixes

  • Connections were not closed properly when an error occurred in a connection that was not currently in use. (#189)

@databases/[email protected]

24 Aug 14:10
3f47e24
Compare
Choose a tag to compare

New Features

  • Add meaningful error when interpolations are quoted with " or backticks, not just ' (#183)