graphql-engine icon indicating copy to clipboard operation
graphql-engine copied to clipboard

Feature Request: SQLite connector

Open benoror opened this issue 5 years ago • 11 comments

Feature Request

What feature are you missing?

Support for local databases such as SQLite

How could this feature look like in detail? Tradeoffs?

Should be straightforward since it's kinda standard.

My main use-case would be to create decentralized/portable/client-side-only (d)apps.

Similar to: https://github.com/prisma/prisma/issues/2460

benoror avatar Nov 26 '18 18:11 benoror

This is a great idea, would accelerate integration testing.

daneroo avatar Jan 05 '19 05:01 daneroo

+1 Great for ARM devices like Rpi

radojko avatar Feb 02 '19 08:02 radojko

Hi, some news about sqlite connector ? thanks.

charles-silva avatar Aug 22 '19 20:08 charles-silva

Sorry to gravedig but any update here on the sqlite integration? This seems incredibly useful.

jeffreygray avatar Sep 30 '20 19:09 jeffreygray

yes, i am subscribing to this

tombohub avatar Jan 01 '21 08:01 tombohub

Hi guys, with the new Alpha releases that include MySQL and MSSQL, I'm hoping this could be included as well!

SQLite supports use cases like LiteStream and decentralized databases, which is super useful for building Web3 applications.

Thanks!

dvasdekis avatar Apr 30 '21 01:04 dvasdekis

They are going to do this for a HasuraCon workshop LOL https://hasura.io/events/hasura-con-2021/talks/sqlite-implementing-a-new-hasura-backend/

louy2 avatar Jun 23 '21 00:06 louy2

@daneroo

This is a great idea, would accelerate integration testing.

@radojko

Great for ARM devices like Rpi

Note that even with different connectors Hasura still needs a Postgres database to manage its metadata, so a SQLite connector would not immediately make Hasura completely portable. You'll still need a Postgres database for integration testing and embedded devices.

carlpaten avatar Sep 29 '21 17:09 carlpaten

This could also help building a (SSG) Next.js website where the static data (getStaticProps) is retrieved from a local GraphQL server using a local sqlite database.

Note this would also require the Hasura meta tables to be stored in sqlite.

marceloverdijk avatar Mar 21 '22 10:03 marceloverdijk

With the announcement of Cloudflare D1, this would be more useful than ever!

dvasdekis avatar May 31 '22 05:05 dvasdekis

Hello all, check out this path here to explore and check out our SQLite connector for Hasura! So far it's just read only queries, but it's a start toward eventual full support!

Hey @dvasdekis would love to see what you'd put together with SQLite and the Cloudflare D1, several of us were pondering what could be done with that and other options out there.

Also for ARM devices/embedded devices, I'd be curious what else everybody else is thinking about, ping me if you've got time to discuss. Here or even ping me direct @Adron.

Adron avatar Oct 13 '22 01:10 Adron