#!/usr/bin/python
# -*- coding: utf-8 -*-


"""@package docstring
 @file Constants.py
 @author Oleksii <developers.hce@gmail.com>
 @link http://hierarchical-cluster-engine.com/
 @copyright Copyright &copy; 2013 IOIX Ukraine
 @license http://hierarchical-cluster-engine.com/license/
 @package HCE project node API
 @since 0.1
"""


DBI_SUCCESS_CODE = 0
DBI_SUCCESS_MSG = "operation success"
DBI_INSERT_ERROR_CODE = 1001
DBI_INSERT_ERROR_MSG = "insert operation failure"
DBI_FETCH_ERROR_CODE = 1002
DBI_FETCH_ERROR_MSG = "fetch operation failure"
DBI_UPDATE_ERROR_CODE = 1003
DBI_UPDATE_ERROR_MSG = "update operation failure"
DBI_DELETE_ERROR_CODE = 1004
DBI_DELETE_ERROR_MSG = "delete operation failure"
DBI_SQL_ERROR_CODE = 1005
DBI_SQL_ERROR_MSG = "sql operation failure"
DBI_COMMON_ERROR_CODE = 1006
DBI_COMMON_ERROR_MSG = "some db error"
