Skip to content

Support Bytes on SQLite #6666

Closed
Closed

Description

@internalfx

Problem

Data model mapping for SQLite does not support Bytes.

Suggested solution

Add Bytes support for SQLite.

Additional context

I would argue that storing files in the database makes more sense for SQLite than any other database. SQLite even proposes itself as a replacement for fopen().

SQLite reads and writes small blobs (for example, thumbnail images) 35% faster¹ than the same blobs can be read from or written to individual files on disk using fread() or fwrite().

https://sqlite.org/fasterthanfs.html

Activity

  1. Brendonovich commented on May 30, 2022

    @Brendonovich

    Prisma already supports Bytes with SQLite, it was just missing from the documentation for a while.

    @janpio I'm guessing you forgot to close this issue when you closed #10537?

  2. janpio commented on May 31, 2022

    @janpio
    Contributor

    Indeed 👍

  3. added this to the 3.15.0 milestone on May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featuretopic: schema

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions