Turnstone Operating System
Loading...
Searching...
No Matches
tosdb_sequence.64.c File Reference

TOSDB sequence functions. More...

#include <tosdb/tosdb.h>
#include <tosdb/tosdb_internal.h>
#include <logging.h>

Functions

 MODULE ("turnstone.kernel.db")
 
tosdb_sequence_ttosdb_sequence_create_or_open (tosdb_database_t *db, const char_t *name, int64_t start, int64_t cache_size)
 creates new sequence More...
 
int64_t tosdb_sequence_next (tosdb_sequence_t *seq)
 get next sequence value More...
 

Detailed Description

TOSDB sequence functions.

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.

Function Documentation

◆ tosdb_sequence_create_or_open()

tosdb_sequence_t * tosdb_sequence_create_or_open ( tosdb_database_t db,
const char_t name,
int64_t  start,
int64_t  cache_size 
)

creates new sequence

Parameters
[in]dbdatabase interface
[in]namesequence name
[in]startsequence start
[in]cache_sizesequence cache size
Returns
a new sequence or existing one

◆ tosdb_sequence_next()

int64_t tosdb_sequence_next ( tosdb_sequence_t seq)

get next sequence value

Parameters
[in]seqthe sequence to operate
Returns
next sequence value