MySQL

Frends.MySQL.ExecuteQuery / 2.0.0

Summary

Runs SQL against MySQL and returns the result as a JToken, with parameters passed separately from the statement text.

Typical use — reading from and writing to MySQL and MariaDB; parameterising is also what keeps injection out of the query

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0

Essential parameters.

Name Type Default Example Description
CommandText String – SELECT ColumnName FROM TableName

SQL statement to execute at the data source. Usually query or name of a stored procedure.

Parameters Parameter[] – foo, bar

Parameters for the database query.

An unhandled error has occurred. Reload 🗙
Reconnecting… Connection lost.