跳过导航
You can put SQLite in the browser now? Yeah, here's how 👀
0:00 / 1:18

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

Ben Holmes

@BHolmesDev4.9万 位关注者

在 X 上查看
1,027 个赞下载原帖

45,307 次观看

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

10 条评论

评论来自 X (Twitter) 上的原帖

  • ~/qudo 的头像

    @_qudo

    Is this April fools

    7 个赞

  • Engid 的头像

    @NickGideo

    SQLocal rolls off the tongue

    2 个赞

  • Firtina Ozbalikci 的头像

    @firtozb

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

    2 个赞

  • ryan 的头像

    @dawescc

    i’m sorry what

    1 个赞

  • Jean 的头像

    @jemartel98

    or ?

    1 个赞

  • Ben Holmes 的头像

    @BHolmesDev

    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

    11 个赞

  • Ian Simmons 的头像

    @isimmons33

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

  • Man’soour - (منصور) 的头像

    @AmMansoour

    Use cases?

  • David Cozzi II 的头像

    @davidcozziii

    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 🐝 的头像

    @JacobWolf

    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.