GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Helge Heß (helge@mastodon.social)'s status on Wednesday, 24-Apr-2024 00:52:23 JST Helge Heß Helge Heß

    It is a bit unfortunate that one can't backup to and restore a #SQlite database from a byte buffer. Otherwise one could also use it to send serialized data over the network 🙈

    In conversation about a year ago from mastodon.social permalink
    • Embed this notice
      Paul Cantrell (inthehands@hachyderm.io)'s status on Wednesday, 24-Apr-2024 00:52:22 JST Paul Cantrell Paul Cantrell
      in reply to

      @helge It’s just a single file, right? I mean…

      In conversation about a year ago permalink
    • Embed this notice
      Helge Heß (helge@mastodon.social)'s status on Wednesday, 24-Apr-2024 03:34:50 JST Helge Heß Helge Heß
      in reply to
      • Sven A. Schmidt
      • Paul Cantrell

      @finestructure @inthehands This is not the ask, SQLite has an in-memory DB which that stuff is probably using.
      The question is how to serialize that in-memory SQLite DB to say a `Data`. I think the only way is to backup the DB to a file, then load the file into a Data and drop the file.

      In conversation about a year ago permalink
    • Embed this notice
      Paul Cantrell (inthehands@hachyderm.io)'s status on Wednesday, 24-Apr-2024 03:34:50 JST Paul Cantrell Paul Cantrell
      in reply to
      • Sven A. Schmidt

      @helge @finestructure
      Huh, it strikes me that there could be multiple use cases for an stdlib- or OS-level “memory buffer as file” facility, either a file handle that acts on a single memory buffer or an in-memory file system. Seems like such a thing should be standard, but I don’t think I’ve ever heard of it.

      In conversation about a year ago permalink
    • Embed this notice
      Helge Heß (helge@mastodon.social)'s status on Wednesday, 24-Apr-2024 03:34:51 JST Helge Heß Helge Heß
      in reply to
      • Paul Cantrell

      @inthehands Yes, but you have to do the I/O to write it to a file, and then load it into a buffer, then delete the file. I'd like the byte representation of an in-memory db w/o doing any I/O.

      In conversation about a year ago permalink
    • Embed this notice
      Sven A. Schmidt (finestructure@mastodon.social)'s status on Wednesday, 24-Apr-2024 03:34:51 JST Sven A. Schmidt Sven A. Schmidt
      in reply to
      • Paul Cantrell

      @helge @inthehands Vapor’s db stuff (whatever the Sqlite Fluent driver is called) has an in-memory db. Would something like that work?

      In conversation about a year ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.