mirror of https://github.com/AMT-Cheif/drift.git
Prefer a space after a closing ) in functions
This commit is contained in:
parent
401b4d3650
commit
5ce5a48cff
|
@ -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(
|
||||
|
|
|
@ -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)'));
|
||||
}
|
||||
|
|
|
@ -649,7 +649,7 @@ class NodeSqlBuilder extends AstVisitor<void, void> {
|
|||
_identifier(e.name);
|
||||
_symbol('(');
|
||||
visit(e.parameters, arg);
|
||||
_symbol(')');
|
||||
_symbol(')', spaceAfter: true);
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
Loading…
Reference in New Issue