On this page

DBParam (Embd)

DBParam (Embedded) Type

DBParam (Embedded) is used to set the several parameters to get the BangDB Environment. Some of the parameters are host ip, port, ssl/non-ssl, transaction type etc. Client connecting with each different databases will have separate DBParams

C++

Java

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
  •  

     

    Was this article helpful to you? Yes No