db_t db_create_file_storage ( const db_fname_t *  file_name,
const db_file_storage_config_t config 
)

Create a database file storage.

The database is immediately opened after creation.

Parameters:
file_name Database file name.
config Storage creation and access configuration.
Returns:
  • A handle to the opened database.
  • NULL on failure.
On failure, one of the following error codes is set:

Warning:
If the file already exists, it will be overwritten.
See also:
db_open_file_storage, db_shutdown


Copyright © 2005-2008 ITTIA®. All rights reserved.