|
/****************************************************************************
|
|
* This file is part of the project AqDatabase.
|
|
* AqDatabase (c) by 2016 Martin Preuss, all rights reserved.
|
|
*
|
|
* The license for this file can be found in the file COPYING which you
|
|
* should have received along with this file.
|
|
****************************************************************************/
|
|
|
|
|
|
#ifndef CREATEDB_H
|
|
#define CREATEDB_H
|
|
|
|
#include <aqdatabase/aqdb_db.h>
|
|
|
|
|
|
int create_database(const char *url, const char *dirname, const char *fname);
|
|
|
|
int destroy_database(const char *url, const char *dirname, const char *fname);
|
|
|
|
|
|
int create_user_database(const char *url, const char *dirname, const char *fname);
|
|
|
|
int create_group(AQDB_DB *database, const char *groupName);
|
|
|
|
int create_user(AQDB_DB *database,
|
|
const char *userName,
|
|
const char *password,
|
|
AQDB_ID primaryGroupId,
|
|
AQDB_ID secondaryGroupId,
|
|
uint32_t permissions);
|
|
|
|
int get_group_id(AQDB_DB *database, const char *groupName);
|
|
|
|
|
|
#endif
|