sql_result 0.2.6 sql_result: ^0.2.6 copied to clipboard
A composable class for MS-SQL query result set. Please take a look at [dart_mssql] package for details.
sql_result #
Class for MS-SQL query result set (see dart_mssql package for details)
Example Usage (use dart_mssql package) #
void main() {
// Establish a connection
SqlConnection connection = SqlConnection(host:"SERVERNAME", db:"DBNAME", user:"USERNAME", password:"PASSWORD");
// Querying several rows
String cmd = "select id_nacionalidade,nom_nacionalidade from nacionalidade where id_nacionalidade>?"; // parameters binding!
SqlResult result = connection.execute(cmd,[4]);
result.rows.forEach((e) {
print("${e.id_nacionalidade}");
});
}