mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Add mvcc.h
to the tree
This commit is contained in:
parent
779ad3066a
commit
c94561a646
2 changed files with 26 additions and 1 deletions
1
core/mvcc/.gitignore
vendored
1
core/mvcc/.gitignore
vendored
|
@ -1,3 +1,2 @@
|
|||
Cargo.lock
|
||||
bindings/c/include
|
||||
target/
|
||||
|
|
26
core/mvcc/bindings/c/include/mvcc.h
Normal file
26
core/mvcc/bindings/c/include/mvcc.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#ifndef MVCC_H
|
||||
#define MVCC_H
|
||||
|
||||
#define MVCC_OK 0
|
||||
|
||||
#define MVCC_IO_ERROR_WRITE 778
|
||||
|
||||
typedef struct DbContext DbContext;
|
||||
|
||||
typedef const DbContext *MVCCDatabaseRef;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif // __cplusplus
|
||||
|
||||
MVCCDatabaseRef MVCCDatabaseOpen(const char *path);
|
||||
|
||||
void MVCCDatabaseClose(MVCCDatabaseRef db);
|
||||
|
||||
int32_t MVCCDatabaseInsert(MVCCDatabaseRef db, uint64_t id, const uint8_t *value_ptr, uintptr_t value_len);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif // __cplusplus
|
||||
|
||||
#endif /* MVCC_H */
|
Loading…
Add table
Add a link
Reference in a new issue