library/src/databases/bpdb/BP-DB.cc
// converts string to a bpcalloced string version of the metadata type.
converts string to a bpcalloced string version of the metadata type.
converts string to a bpcalloced string version of the metadata type .
char * BP_DBColumnTypeToString(BPDB_SQL_TABLE_COLUMN_METADATA_TYPE type)
{
	switch(type)
	{
		case BPDB_SQL_TABLE_COLUMN_METADATA_TYPE_UNSET:
			return bpstrdup("BPDB_SQL_TABLE_COLUMN_METADATA_TYPE_UNSET");
			break;
		case BPDB_SQL_TABLE_COLUMN_METADATA_TYPE_INTEGER:
			return bpstrdup("BPDB_SQL_TABLE_COLUMN_METADATA_TYPE_INTEGER");
			break;
		case BPDB_SQL_TABLE_COLUMN_METADATA_TYPE_BIN:
			return bpstrdup("BPDB_SQL_TABLE_COLUMN_METADATA_TYPE_BIN");
			break;
		case BPDB_SQL_TABLE_COLUMN_METADATA_TYPE_TEXT:
			return bpstrdup("BPDB_SQL_TABLE_COLUMN_METADATA_TYPE_TEXT");
			break;
		default:
			break;
	}
	return NULL;
}
char * BP_DBColumnTypeToString ( BPDB_SQL_TABLE_COLUMN_METADATA_TYPE type ) { switch ( type ) { case BPDB_SQL_TABLE_COLUMN_METADATA_TYPE_UNSET : return bpstrdup ( " " ) ; break ; case BPDB_SQL_TABLE_COLUMN_METADATA_TYPE_INTEGER : return bpstrdup ( " " ) ; break ; case BPDB_SQL_TABLE_COLUMN_METADATA_TYPE_BIN : return bpstrdup ( " " ) ; break ; case BPDB_SQL_TABLE_COLUMN_METADATA_TYPE_TEXT : return bpstrdup ( " " ) ; break ; default : break ; } return NULL ; }
converts string to a bpcalloced string version of the metadata type.
converts string to a bpcalloced string version of the metadata type .
// gen string based on switch // return null if there is no type match