正在加载视频...

视频加载失败

You can put SQLite in the browser now? Yeah, here's how 👀

43,240 次观看 • 1 年前 •via X (Twitter)

10 条评论

~/qudo 的头像
~/qudo1 年前

Is this April fools

Engid 的头像
Engid1 年前

SQLocal rolls off the tongue

Firtina Ozbalikci 的头像
Firtina Ozbalikci1 年前

Yep, I use this for local first web apps, sharing the same drizzle schema for front and back end, works like a dream.

ryan 的头像
ryan1 年前

i’m sorry what

Jean 的头像
Jean1 年前

or ?

Ben Holmes 的头像
Ben Holmes1 年前

Ah, there's an important distinction: sql.js runs in memory, while the sqlite wasm build writes to a file. This persists data even when closing your web app

Ian Simmons 的头像
Ian Simmons1 年前

Did Electron and Tauri apps with their own local database just get super easy because of this? IDK but it looks exciting.

Man’soour - (منصور) 的头像
Man’soour - (منصور)1 年前

Use cases?

David Cozzi II 的头像
David Cozzi II1 年前

If only there was this thing where SQLite was just baked into every browser. Probably could call it WebSQL. Sadly, we can’t have nice things 🙁

Jacob Wolf 🐝 的头像
Jacob Wolf 🐝1 年前

Recently started using this in CI for a side project: Same concept. Can be in memory or to IndexedDB. Really nice to have a Postgres-compatible API rather than having to adjust my code to write Postgres in prod & SQLite in CI.

相关视频