Prefer a space after a closing ) in functions

This commit is contained in:
Simon Binder 2021-03-23 19:31:55 +01:00
parent 401b4d3650
commit 5ce5a48cff
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
3 changed files with 4 additions and 4 deletions

View File

@ -967,7 +967,7 @@ abstract class _$Database extends GeneratedDatabase {
$IngredientInRecipesTable(this);
Selectable<TotalWeightResult> totalWeight() {
return customSelect(
'SELECT r.title, SUM(ir.amount)AS total_weight FROM recipes AS r INNER JOIN recipe_ingredients AS ir ON ir.recipe = r.id GROUP BY r.id',
'SELECT r.title, SUM(ir.amount) AS total_weight FROM recipes AS r INNER JOIN recipe_ingredients AS ir ON ir.recipe = r.id GROUP BY r.id',
variables: [],
readsFrom: {recipes, ingredientInRecipes}).map((QueryRow row) {
return TotalWeightResult(

View File

@ -1649,7 +1649,7 @@ abstract class _$CustomTablesDb extends GeneratedDatabase {
Selectable<JsonResult> another() {
return customSelect(
'SELECT \'one\' AS "key", NULLIF(\'two\', \'another\')AS value',
'SELECT \'one\' AS "key", NULLIF(\'two\', \'another\') AS value',
variables: [],
readsFrom: {}).map((QueryRow row) {
return JsonResult(
@ -1724,7 +1724,7 @@ abstract class _$CustomTablesDb extends GeneratedDatabase {
}
Selectable<int?> nullableQuery() {
return customSelect('SELECT MAX(oid)FROM config',
return customSelect('SELECT MAX(oid) FROM config',
variables: [],
readsFrom: {config}).map((QueryRow row) => row.read<int?>('MAX(oid)'));
}

View File

@ -649,7 +649,7 @@ class NodeSqlBuilder extends AstVisitor<void, void> {
_identifier(e.name);
_symbol('(');
visit(e.parameters, arg);
_symbol(')');
_symbol(')', spaceAfter: true);
}
@override