question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for JSON field type in SQLite

See original GitHub issue

Problem

SQLite has had support for JSON field type for a while. Sequelize supports this field type on par with Postgres and MySQL.

Lack of support for this field type by Prisma is preventing us from porting over our project.

SQLite is a great bootstrapping technology that allows developers to quickly prototype applications without introducing new dependencies such as docker or worry about running yet another service in the development flow. JSON field type gives us the option to have a nosql database colocated in a sql database.

Suggested solution

Please implement support for this feature. See JSON Extension documentation and refer to Sequelize’s implementation if required.

Alternatives

Defer migration to Prisma and stick with Sequelize. Maintain status quo.

Additional context

Prisma cannot handle json field type

cc: @ryands17 ref: https://github.com/prisma/prisma/discussions/3575

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:98
  • Comments:24 (5 by maintainers)

github_iconTop GitHub Comments

30reactions
wolffparkinsoncommented, Nov 17, 2021

This is the first result that comes up for Prisma JSON SQLite search. Some response on whether this is in near future plans or not would be appreciable from the maintainers, considering this issue is over an year old.

23reactions
kofcommented, Jun 2, 2022

We want to support both Sqlite and PostgreSQL in Webstudio and while migrating from MongoDB discovered the missing support for JSON type.

With the recent motion in favor of SQLite serverside by multiple startups and announcement of D1 from cloudflare, this should be a priority for Prisma.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to store JSON object in SQLite database - Stack Overflow
From the first page you linked: "The json1 extension (currently) stores JSON as ordinary text. Backwards compatibility constraints mean that ...
Read more >
Storing and Retrieving JSON Data In SQLite
In this tutorial we look at storing and retrieving JSON data in SQLite and also at how we can easily store time series...
Read more >
JSON improvements in SQLite 3.38.0 - xtreak blog
With the release of 3.38.0 JSON support is on by default. SQLite also provides pre-built binaries for Linux, Windows and Mac. For Linux...
Read more >
Is it possible to store and query JSON in SQLite?
SQLite 3.9 introduced a new extension (JSON1) that allows you to easily work with JSON data . Also, it introduced support for indexes...
Read more >
JSON Column types with Sqlite - Laracasts
Has anyone successfully loaded the Sqlite extension JSON1 when using Sqlite as their configured database? I'm interested now that Laravel 5.4 supports ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found