DBParam type
Following is how DBParam for BangDB Server
DBParam is used to set the db environment. It is described as below;
// db related data, right now we send following to db
TransactionType _tranType; // if db should be opened in transactional or non-transactional mode
// pls note, db could be stopped and started in different way as needed
// as far as transaction mode is concerned
const char *_configPath; // path to bangdb.config file, optional - default is local current dir
const char *_dbPath; // path where db files will be kept, optional - default is data dir in current dir
const char *_dbLogPath; // path where log files will be kept, optional - default is logdir dir in current dir
const char *_dbArchivePath; // path where archive files will be kept, optional - default is archive dir in current dir
const char *_host; // ip address or name of the host server
const char *_port; // port of the server
DBParam is used to set the db environment. It is described as below;
// db related data, right now we send following to db
TransactionType _tranType; // if db should be opened in transactional or non-transactional mode
// pls note, db could be stopped and started in different way as needed
// as far as transaction mode is concerned
String _configPath; // path to bangdb.config file, optional - default is local current dir
String _dbPath; // path where db files will be kept, optional - default is data dir in current dir
String _dbLogPath; // path where log files will be kept, optional - default is logdir dir in current dir
String _dbArchivePath; // path where archive files will be kept, optional - default is archive dir in current dir
String _host; // ip address or name of the host server
String _port; // port of the server
Following for Embedded BangDB
DBParam is used to set the db environment. It is described as below;
// db related data, right now we send following to db
TransactionType _tranType; // if db should be opened in transactional or non-transactional mode
// pls note, db could be stopped and started in different way as needed
// as far as transaction mode is concerned
const char *_configPath; // path to bangdb.config file, optional - default is local current dir
const char *_dbPath; // path where db files will be kept, optional - default is data dir in current dir
const char *_dbLogPath; // path where log files will be kept, optional - default is logdir dir in current dir
const char *_dbArchivePath; // path where archive files will be kept, optional - default is archive dir in current dir
DBParam is used to set the db environment. It is described as below;
// db related data, right now we send following to db
TransactionType _tranType; // if db should be opened in transactional or non-transactional mode
// pls note, db could be stopped and started in different way as needed
// as far as transaction mode is concerned
String _configPath; // path to bangdb.config file, optional - default is local current dir
String _dbPath; // path where db files will be kept, optional - default is data dir in current dir
String _dbLogPath; // path where log files will be kept, optional - default is logdir dir in current dir
String _dbArchivePath; // path where archive files will be kept, optional - default is archive dir in current dir