package sqlgg

  1. Overview
  2. Docs
SQL Guided (code) Generator

Install

dune-project
 Dependency

Authors

Maintainers

Sources

sqlgg-20260721.tbz
sha256=40d7699187951dd2f17d885c4f4f04124930bf7dc1119d4cca322c5f0cb42d8e
sha512=e7c90683cddcff3ca0ba9de9e40c2c4c69923ea62e2647f1a70083e42ed00b7cab53f8a14d1a965ee4465966bc02fa75fa7cb42e485beae1a9c26bdc252c3665

doc/sqlgg.traits/Sqlgg_stmt_cache/Async_lru/Make/index.html

Module Async_lru.MakeSource

Parameters

module Evict : Evict with type 'a future = 'a IO.future

Signature

Sourcetype ('k, 'v) node = {
  1. mutable prev : ('k, 'v) node option;
  2. mutable next : ('k, 'v) node option;
  3. key : 'k;
  4. value : 'v;
}
Sourcetype ('k, 'v) t = {
  1. mutable head : ('k, 'v) node option;
  2. mutable tail : ('k, 'v) node option;
  3. hash : ('k, ('k, 'v) node) Hashtbl.t;
  4. capacity : int;
  5. mutable size : int;
}
Sourceval create : int -> ('a, 'b) t
Sourceval remove_node : ('a, 'b) t -> ('a, 'b) node -> unit
Sourceval add_to_head : ('a, 'b) t -> ('a, 'b) node -> unit
Sourceval move_to_head : ('a, 'b) t -> ('a, 'b) node -> unit
Sourceval remove_tail : ('a, 'b) t -> ('a, 'b) node option
Sourceval add : 'a -> Evict.value -> ('a, Evict.value) t -> unit IO.future
Sourceval find : 'a -> ('a, 'b) t -> 'b option
Sourceval remove : 'a -> ('a, Evict.value) t -> bool IO.future
Sourceval size : ('a, 'b) t -> int
Sourceval capacity : ('a, 'b) t -> int
Sourceval is_empty : ('a, 'b) t -> bool
Sourceval clear : ('a, Evict.value) t -> unit IO.future