Improved function to build an indexer name
This commit is contained in:
@@ -19,6 +19,9 @@
|
|||||||
#include "obidebug.h"
|
#include "obidebug.h"
|
||||||
|
|
||||||
|
|
||||||
|
#define DEBUG_LEVEL 0 // TODO has to be defined somewhere else (cython compil flag?)
|
||||||
|
|
||||||
|
|
||||||
inline int obi_indexer_exists(OBIDMS_p dms, const char* name);
|
inline int obi_indexer_exists(OBIDMS_p dms, const char* name);
|
||||||
|
|
||||||
inline Obi_indexer_p obi_indexer(OBIDMS_p dms, const char* name);
|
inline Obi_indexer_p obi_indexer(OBIDMS_p dms, const char* name);
|
||||||
|
@@ -162,6 +162,8 @@ inline Obi_blob_p obi_indexer_get(Obi_indexer_p indexer, index_t idx)
|
|||||||
/**
|
/**
|
||||||
* @brief Builds an indexer name in the form columnname_columnversion_indexer.
|
* @brief Builds an indexer name in the form columnname_columnversion_indexer.
|
||||||
*
|
*
|
||||||
|
* @warning The returned pointer has to be freed by the caller.
|
||||||
|
*
|
||||||
* @param column_name The name of the column associated with the indexer.
|
* @param column_name The name of the column associated with the indexer.
|
||||||
* @param column_version The version of the column associated with the indexer.
|
* @param column_version The version of the column associated with the indexer.
|
||||||
*
|
*
|
||||||
@@ -171,7 +173,7 @@ inline Obi_blob_p obi_indexer_get(Obi_indexer_p indexer, index_t idx)
|
|||||||
* @since April 2016
|
* @since April 2016
|
||||||
* @author Celine Mercier (celine.mercier@metabarcoding.org)
|
* @author Celine Mercier (celine.mercier@metabarcoding.org)
|
||||||
*/
|
*/
|
||||||
char* obi_build_indexer_name(const char* column_name, obiversion_t column_version)
|
char* obi_build_indexer_name(const char* column_name, obiversion_t column_version);
|
||||||
|
|
||||||
|
|
||||||
#endif /* OBIBLOB_INDEXER_H_ */
|
#endif /* OBIBLOB_INDEXER_H_ */
|
||||||
|
Reference in New Issue
Block a user