Datatable To MySql

Writes the data in a DataTable object to a MySQL table


⬅️INPUT

Parameter

Type

Required

Description

ConnectionSettings

PAWMySqlConnectionSettings

✅Yes

Contains the MySql database connection information.

TableName

String

✅Yes

Name of the table the data is to be saved to.

Data

DataTable

✅Yes

Collection data to be saved to the database.


➡️OUTPUT

Parameter

Type

Description

IsCollectionToMySqlSuccessful

Boolean

Returns "True" if the operation succeeds, "False" if it fails.

CollectionToMySqlMessage

String

Returns the error information received if the operation fails.


⬇️MISC

Parameter

Type

Default

Description

ThrowException

Boolean

❌No

Specifies whether an exception is thrown when the operation fails. The default value is "No".