IDatabaseEffects
Interface for database effects - operations that interact with the database
public interface IDatabaseEffects
Methods
GetColumnMetadataFromSqlAsync(string, string, IEnumerable<ParameterInfo>)
Task<Result<IReadOnlyList<DatabaseColumn>, SqlError>> GetColumnMetadataFromSqlAsync(string connectionString, string sql, IEnumerable<ParameterInfo> parameters)
Gets column metadata by executing the SQL query against the database.
Parameters:
| Name | Type | Description |
|---|---|---|
connectionString |
String |
Database connection string |
sql |
String |
SQL query to execute |
parameters |
ParameterInfo> |
Query parameters |
Returns: SqlError>> - List of database columns with their metadata