Skip to content

Releases: fdarian/prisma-generator-drizzle

v0.6.4

01 Feb 11:17
Compare
Choose a tag to compare

What's Changed

  • Fix List Definition by @farreldarian in #31

Full Changelog: v0.6.3...v0.6.4

v0.6.3

27 Jan 14:33
Compare
Choose a tag to compare

What's Changed

  • fix: Allow overriding moduleResolution by @farreldarian in #30

Full Changelog: v0.6.2...v0.6.3

v0.6.2

27 Jan 12:45
Compare
Choose a tag to compare

What's Changed

  • fix: Resolve moduleResolution to adapt import style by @farreldarian in #29

Full Changelog: v0.6.1...v0.6.2

v0.6.1

27 Jan 10:02
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.6.0...v0.6.1

v0.6.0

20 Jan 16:58
Compare
Choose a tag to compare

What's Changed

Support for default values and new drizzle.default directive

Defining @default(...) will translate to .default(...) in the generated drizzle schema, including the autoincrement() and dbgenerated function.

Aside from that, you can use the drizzle.default as a replacement for cuid() and uuid() function which are implement by Prisma engine.

// schema.prisma

model User {
  /// drizzle.default @paralleldrive/cuid2::createId
  id        String    @id
  ...
}
// ./drizzle/users.ts

export const users = pgTable('User', {
  id: text('id')
    .$defaultFn(() => createId())
    .primaryKey(),
...
})
  • feat: Add support for @default and drizzle.default by @farreldarian in #22
  • feat: Support for dbgenerated default by @farreldarian in #27

Support for Bytes

prisma-generator-drizzle now support all prisma scalar fields, leaving List and Unsupported left

  • feat: Support for Bytes by @farreldarian in #24

Improvement & Fixes

  • fix: SQLite Decimal should return string like others by @farreldarian in #23
  • fix: Nested directive by @farreldarian in #26

Misc

  • chore: Upgrade dependencies by @farreldarian in #21
  • chore: Cleanup tests by @farreldarian in #25

Full Changelog: v0.5.5...v0.6.0

v0.5.5

08 Jan 06:53
Compare
Choose a tag to compare

What's Changed

  • Add Verbose Flag to control the logging behavior by @farreldarian in #16, thanks @Scalahansolo for the suggestion

Full Changelog: v0.5.4...v0.5.5

v0.5.4

08 Jan 05:38
Compare
Choose a tag to compare

What's Changed

  • Separate relational definitions into a separate module by @farreldarian in #13, thanks @octalpixel @Scalahansolo for raising this issue

Misc

Full Changelog: v0.5.3...v0.5.4

v0.5.3

03 Jan 04:26
Compare
Choose a tag to compare

What's Changed

  • Allow cockroachdb as a provider and use the postgres adapter by @Scalahansolo in #10

New Contributors

Full Changelog: v0.5.2...v0.5.3

v0.5.2

02 Jan 04:29
d44b481
Compare
Choose a tag to compare

What's Changed

  • Allow disable relational query generation by @farreldarian in #8

Full Changelog: v0.5.1...v0.5.2

v0.5.1

31 Dec 15:48
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.5.0...v0.5.1