/// <summary> /// Gets a partially configured BulkTableWriter objects which can then be used to write data to the database. /// </summary> /// <typeparam name="T">The type of object to write.</typeparam> /// <param name="EstablishedConnection">An open and established connection to a MySQL database.</param> /// <param name="InsertQuery">The full SQL query to be run on each row insert.</param> /// <param name="ThrowException">Throw exception or cache in LastExecutionException and continue.</param> /// <param name="UseTransaction">Indicate whether to write all the data in a single transaction.</param> /// <param name="SqlTransaction">Supply an existing transaction for use in this operation.</param> /// <returns>An object to used to write data to the database.</returns> public static BulkTableWriter <T> GetBulkTableWriter <T>(MySqlConnection EstablishedConnection, string InsertQuery = null, bool ThrowException = true, bool UseTransaction = true, MySqlTransaction SqlTransaction = null) => DataOutputOperations.GetBulkTableWriter <T>(EstablishedConnection, InsertQuery: InsertQuery, UseTransaction: UseTransaction, ThrowException: ThrowException, SqlTransaction: SqlTransaction);
//***************** Table write functions *****************// /// <summary> /// Gets a partially configured BulkTableWriter objects which can then be used to write data to the database. /// </summary> /// <typeparam name="T">The type of object to write.</typeparam> /// <param name="ConfigConnectionString">An enum type to reference a connection string defined in web.config.</param> /// <param name="InsertQuery">The full SQL query to be run on each row insert.</param> /// <param name="UseTransaction">Indicate whether to write all the data in a single transaction.</param> /// <param name="ThrowException">Throw exception or cache in LastExecutionException and continue.</param> /// <param name="AllowUserVariables">Will allow special user variables (variables start with "@") to be defined in the query that will be eventually executed.</param> /// <returns>An object to used to write data to the database.</returns> public static BulkTableWriter <T> GetBulkTableWriter <T>(Enum ConfigConnectionString, string InsertQuery = null, bool UseTransaction = false, bool ThrowException = true, bool AllowUserVariables = false) => DataOutputOperations.GetBulkTableWriter <T>(ConfigConnectionString, InsertQuery: InsertQuery, UseTransaction: UseTransaction, ThrowException: ThrowException, AllowUserVariables: AllowUserVariables);