library/src/databases/bpdb/BP-DBSQLSyntaxGenerators.cc
// Generates the sql syntax required for an insert query.
Generates the sql syntax required for an insert query.
Generates the sql syntax required for an insert query .
BP_ERROR_T BP_DBSGInsertInto(P_BPDB_SQLGEN syngen, BPDB_SELECTOR_TYPE out_db_selector, char *table_name, size_t max_records)
{
	if(!syngen)
		return ERR_FAILURE;
	if(!out_db_selector)
		return ERR_FAILURE;
	if(!table_name)
		return ERR_FAILURE;
	if(!BP_StringIsReasonableForTableNameDB(table_name, bpstrlen(table_name)))
		return ERR_FAILURE;
	return ERR_SUCCESS;
}
BP_ERROR_T BP_DBSGInsertInto ( P_BPDB_SQLGEN syngen , BPDB_SELECTOR_TYPE out_db_selector , char * table_name , size_t max_records ) { if ( ! syngen ) return ERR_FAILURE ; if ( ! out_db_selector ) return ERR_FAILURE ; if ( ! table_name ) return ERR_FAILURE ; if ( ! BP_StringIsReasonableForTableNameDB ( table_name , bpstrlen ( table_name ) ) ) return ERR_FAILURE ; return ERR_SUCCESS ; }
Generates the sql syntax required for an insert query.
Generates the sql syntax required for an insert query .
// ensure table name is reasonable // return indicating success