Releases: fdarian/prisma-generator-drizzle
Releases · fdarian/prisma-generator-drizzle
v0.6.4
v0.6.3
v0.6.2
v0.6.1
What's Changed
- Add js extension to import paths by @daniel-nagy in #28
New Contributors
- @daniel-nagy made their first contribution in #28
Full Changelog: v0.6.0...v0.6.1
v0.6.0
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
Full Changelog: v0.5.5...v0.6.0
v0.5.5
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
What's Changed
- Separate relational definitions into a separate module by @farreldarian in #13, thanks @octalpixel @Scalahansolo for raising this issue
Misc
- Create test for @ignore and @@ignore by @farreldarian in #14, thanks @Scalahansolo for raising this issue
Full Changelog: v0.5.3...v0.5.4
v0.5.3
What's Changed
- Allow cockroachdb as a provider and use the postgres adapter by @Scalahansolo in #10
New Contributors
- @Scalahansolo made their first contribution in #10
Full Changelog: v0.5.2...v0.5.3