You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@EmreSURK
I think the ideal is to implement it in a similar way to the postgres package, to maintain compatibility with previous versions https://pub.dev/packages/postgres
List<List<dynamic>> results =await connection.query("SELECT a, b FROM table WHERE a = @aValue", substitutionValues: {
"aValue":3
});
for (final row in results) {
var a = row[0];
var b = row[1];
}
List<Map<String, Map<String, dynamic>>> results =await connection.mappedResultsQuery(
"SELECT t.id, t.name, u.name FROM t LEFT OUTER JOIN u ON t.id=u.t_id");
for (final row in results) {
var tID = row["t"]["id"];
var tName = row["t"]["name"];
var uName = row["u"]["name"];
}```
It would be better if we put object support to generate a query.
Current:
Target:
That writing provides much more flexible usage.
Please let me know what you think.
Thanks.
The text was updated successfully, but these errors were encountered: