package granary

  1. Overview
  2. Docs
Pure-OCaml SQL engine

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.0.3.tar.gz
sha256=8b18780ea373be48301d9f333925860a2f9110fc0ac28684295118d72b65a67e
sha512=25ca3c9c5e2b528704a542502e0f37dc33ba003f65622d969b8c2b800778585f8ef0cf89b36e6679832e3993e8303aecddfc662742baf7044d6afe4a796b8f11

doc/src/granary.block/block.ml.html

Source file block.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module type S = sig
  type t
  type error

  val pp_error : Format.formatter -> error -> unit
  val page_size : t -> int
  val n_pages : t -> int64
  val read_page : t -> page_id:int64 -> Cstruct.t -> (unit, error) result Lwt.t
  val write_page : t -> page_id:int64 -> Cstruct.t -> (unit, error) result Lwt.t
  val sync : t -> (unit, error) result Lwt.t
  val resize : t -> n_pages:int64 -> (unit, error) result Lwt.t
end

[@@@ai_disclosure "ai-generated"]
[@@@ai_model "claude-opus-4-7"]
[@@@ai_provider "Anthropic"]