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

tosdb interface implementation More...

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

Functions

 MODULE ("turnstone.kernel.db")
 
boolean_t tosdb_database_load_tables (tosdb_database_t *db)
 
tosdb_database_ttosdb_database_load_database (tosdb_database_t *db)
 
tosdb_database_ttosdb_database_create_or_open (tosdb_t *tdb, const char_t *name)
 creates new database More...
 
boolean_t tosdb_database_close (tosdb_database_t *db)
 closes a database More...
 
boolean_t tosdb_database_free (tosdb_database_t *db)
 frees a database More...
 
boolean_t tosdb_database_persist (tosdb_database_t *db)
 

Detailed Description

tosdb interface implementation

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

Function Documentation

◆ tosdb_database_close()

boolean_t tosdb_database_close ( tosdb_database_t db)

closes a database

Parameters
[in]dbthe database to close
Returns
true if succeed.

◆ tosdb_database_create_or_open()

tosdb_database_t * tosdb_database_create_or_open ( tosdb_t tdb,
const char_t name 
)

creates new database

Parameters
[in]tdbtosdb interface
[in]namedatabase name
Returns
a new database or existing one

◆ tosdb_database_free()

boolean_t tosdb_database_free ( tosdb_database_t db)

frees a database

Parameters
[in]dbthe database to free
Returns
true if succeed.