changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / lisp/ffi/rocksdb/checkpoint.lisp

changeset 272: 0a5e37693fdf
child: c7f9bfc9570f
author: Richard Westhaver <ellis@rwest.io>
date: Tue, 09 Apr 2024 22:09:52 -0400
permissions: -rw-r--r--
description: db protocol stuff, prep for tao, tests, with-temp-db
1 ;;; rocksdb/checkpoint.lisp --- RocksDB Checkpoints
2 
3 ;;
4 
5 ;;; Code:
6 (in-package :rocksdb)
7 
8 (export '(rocksdb-checkpoint-object-destroy))
9 
10 (def-with-errptr rocksdb-checkpoint-object-create (* rocksdb-checkpoint)
11  (db (* rocksdb)))
12 
13 (def-with-errptr rocksdb-checkpoint-create void
14  (checkpoint (* rocksdb-checkpoint))
15  (checkpoint-dir c-string)
16  (log-size-for-flush (unsigned 64)))
17 
18 (define-alien-routine rocksdb-checkpoint-object-destroy void
19  (* rocksdb-checkpoint))
20 
21 ;; rocksdb-open-and-trim-history
22 (def-with-errptr rocksdb-open-as-secondary-column-families (* rocksdb)
23  (opts (* rocksdb-options))
24  (name c-string)
25  (secondary-path c-string)
26  (num-cfs int)
27  (cf-names (array c-string))
28  (cf-opts (array (* rocksdb-options)))
29  (cf-handles (array (* rocksdb-column-family-handle))))
30 
31 (def-with-errptr rocksdb-open-as-secondary (* rocksdb)
32  (opts (* rocksdb-options))
33  (name c-string)
34  (secondary-path c-string))