Comments (2)
@SupremeTechnopriest , I've went down this road, solved it with text column.
const table = sqliteTable('table', {
id: integer('id').primaryKey(),
jsonCol: text('json_col', { mode: 'json' }).$type<string[]>()
}
https://orm.drizzle.team/docs/column-types/sqlite#blob
The docs recommend text for json as well.
from drizzle-orm.
Yeah Im a little deep into the blob right now and the migration would be a nightmare to change to text. I didnt need json functions so I thought blobs would be fine. Im pretty sure this worked at one point.
from drizzle-orm.
Related Issues (20)
- [BUG]: TIMESTAMPS showing up incorrectly on drizzle studio. HOT 2
- [BUG]: drizzle-zod: documented usage generates type error with `exactOptionalPropertyTypes`
- [BUG]: INSERT generates null values for omitted columns, violating not-null constraints during UPSERT HOT 1
- [BUG]: Duplicate entry for auto increment column when execute insert statement
- [BUG]: Aggregated results from many-to-one relations doesn't return timestamp using postgres DB HOT 1
- [BUG]: Cannot read properties of undefined (reading 'type')
- [BUG]: Deeply nested query when there's a reverse query at the end HOT 1
- [BUG]: .default() does not work on boolean pg types HOT 2
- [BUG]: [SQLITE] Push command show SQL to apply with no schema changes HOT 3
- [BUG]: SQLite migration generation shows lack of support for "Set not null to column" when the schema modification do not need it HOT 1
- [BUG]: Constant problem with parsing Xata xata_id custom property HOT 1
- [FEATURE]: Support data migrations independent of schema change HOT 2
- [BUG]:ON DELETE cascade not working HOT 4
- [BUG]: Implicit sequences are not tracked in migrations
- [BUG]: boolean mode not working with prepared statements (bettersqlite) HOT 6
- [FEATURE]: REGEXP SUPPORT
- [BUG]: Drizzle-kit does not obey composite primary key order when generating SQL (relevant for SQLite)
- [BUG]: drizzle-kit push reads all files in schema folder instead of only index.ts
- [BUG]: Cannot chain methods to type `db.select()`
- [BUG]: Migrations dropping tables does not consider dependents
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drizzle-orm.