dboo::odb::create_database

void create_database ( const database_name& database_name );                                    1)
void create_database ( const database_name& database_name, const group_id& group);              2)
void create_database ( const database_name& database_name, const group_id& group,               3)
                      const std::string& description );
void create_database ( const database_name& database_name, const group_id& group,               4)
                      const std::string& description, const std::string& filepath );
void create_database ( const database_name& database_name, const std::vector<group_id>& groups, 5)
                       const std::string& description, const std::string& filepath );
create_database ( database_name, group)                 2)

Creates a database. A user with admin rights must be logged in to the server database for this operation to be successful. If the group does not exist it will be created.

1

Creates a database without any group associated and at default location. Note that to be able to use the database a group must be associated with it, so that a user can connect to it.

2

Creates a database with a group at default location.

3

Creates a database with a group and a description at default location.

4

Creates a database with a group and a description at specified location.

5

Creates a database with a number of groups and a description at specified location

Parameters

database_name

The new database’s id. Ex: “mydb”

group

An access group to associated with the database.

groups

A list of groups that should be associated with the database

filepath

A file path to where the database files should be stored

description

A description of the database

Return value

(void)

Exceptions

Example