Skip to content

Missing xShm* bindings #71

Closed
Closed

Description

@bkoropoff

These would be nice to allow WAL support. Exposing a safe interface to Rust would require some thought, since SQlite does not explicitly inform you when it no longer references the returned memory region. And, of course, mapping memory in Rust is inherently unsafe on many platforms because accessing the mapped region will fault if the underlying file has been truncated by an external process, which is fun.

Activity

  1. carlsverre commented on Feb 24, 2026

    @carlsverre
    Contributor

    This is a good idea, but as you point out, it's tricky to implement. If absolutely needed, we can either expose them as unsafe methods on the vfs, or we can figure out how to pass through to the parent vfs as I do for dlopen (although slightly more tricky due to them being on io_methods).

  2. carlsverre commented on Mar 1, 2026

    @carlsverre
    Contributor

    closed in #76

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions