Views are now rollbacked if an error occurs, and unfinished views and

columns are deleted when an OBIDMS is opened.
This commit is contained in:
Celine Mercier
2017-10-26 18:58:48 +02:00
parent 1ae634d56b
commit dfd51939a0
11 changed files with 702 additions and 55 deletions

View File

@@ -49,6 +49,25 @@ typedef struct OBIDMS_column_directory {
} OBIDMS_column_directory_t, *OBIDMS_column_directory_p;
/**
* Function building the column directory name from an OBIDMS column name.
*
* The function builds the directory name corresponding to an OBIDMS column directory.
* It checks also that the name is not too long.
*
* @warning The returned pointer has to be freed by the caller.
*
* @param column_name The name of the OBIDMS column.
*
* @returns A pointer to the OBIDMS column directory name.
* @retval NULL if an error occurred.
*
* @since June 2015
* @author Celine Mercier (celine.mercier@metabarcoding.org)
*/
char* obi_build_column_directory_name(const char* column_name);
/**
* @brief Checks if an OBIDMS column directory exists.
*