Skip to content

Releases: ForbesLindesay/atdatabases

@databases/[email protected]

08 Aug 10:35
585bcab
Compare
Choose a tag to compare

New Features

  • Add options to ignore tables when generating types (#254)

    • includeTables - if specified, types will only be generated for the tables listed
    • ignoreTables - if specified, types will not be generated for the tables listed, even if they are also listed in includeTables

@databases/[email protected]

08 Aug 10:35
585bcab
Compare
Choose a tag to compare

New Features

  • Add options to ignore tables when generating types (#254)

    • types.includeTables - if specified, types will only be generated for the tables listed
    • types.ignoreTables - if specified, types will not be generated for the tables listed, even if they are also listed in types.includeTables

@databases/[email protected]

05 Aug 10:43
ac19f8f
Compare
Choose a tag to compare

Bug Fixes

  • Support CommonJS style require (#253)

@databases/[email protected]

02 Aug 13:05
61043da
Compare
Choose a tag to compare

Bug Fixes

  • Force container to run with --platform linux/amd64 (#248)

    This ensures the container works when run on otherwise unsupported platforms such as M1 MacBooks

@databases/[email protected]

02 Aug 13:05
61043da
Compare
Choose a tag to compare

Bug Fixes

  • Prioritise foreign keys over primary keys (#250)

    If a key was both a foreign key and a primary key, we would incorrectly generate a branded type for it, rather than referencing the column being referenced by the foreign key.

@databases/[email protected]

28 Jul 12:28
344d4d4
Compare
Choose a tag to compare

New Features

  • Initial release (#240)

@databases/[email protected]

29 Jun 00:33
0bc08b8
Compare
Choose a tag to compare

Breaking Changes

  • Update sqlite3 to v5 (#244)

@databases/[email protected]

25 Apr 10:10
aeb2978
Compare
Choose a tag to compare

Bug Fixes

  • Transactions that were retried due to serialization failures were not handled correctly (#242)

@databases/[email protected]

21 Mar 16:17
8149428
Compare
Choose a tag to compare

New Features

  • Added .bulkInsertOrIgnore(options) (#229)

    Like bulkInsert except it will ignore conflicting inserts.

  • Added .bulkInsertOrUpdate(options) (#229)

    Like bulkInsert except it will update records where insert would conflict.

    async function setUserFavoriteColors(
      users: {
        email: string;
        favorite_color: string;
      }[],
    ) {
      await tables.users(db).bulkInsertOrUpdate({
        columnsToInsert: [`email`, `favorite_color`],
        columnsThatConflict: [`email`],
        columnsToUpdate: [`favorite_color`],
        records: users,
      });
    }

@databases/[email protected]

21 Mar 16:17
8149428
Compare
Choose a tag to compare

New Features

  • Add --schemaName parameter (#238)