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);
|
$IngredientInRecipesTable(this);
|
||||||
Selectable<TotalWeightResult> totalWeight() {
|
Selectable<TotalWeightResult> totalWeight() {
|
||||||
return customSelect(
|
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: [],
|
variables: [],
|
||||||
readsFrom: {recipes, ingredientInRecipes}).map((QueryRow row) {
|
readsFrom: {recipes, ingredientInRecipes}).map((QueryRow row) {
|
||||||
return TotalWeightResult(
|
return TotalWeightResult(
|
||||||
|
|
|
@ -1649,7 +1649,7 @@ abstract class _$CustomTablesDb extends GeneratedDatabase {
|
||||||
|
|
||||||
Selectable<JsonResult> another() {
|
Selectable<JsonResult> another() {
|
||||||
return customSelect(
|
return customSelect(
|
||||||
'SELECT \'one\' AS "key", NULLIF(\'two\', \'another\')AS value',
|
'SELECT \'one\' AS "key", NULLIF(\'two\', \'another\') AS value',
|
||||||
variables: [],
|
variables: [],
|
||||||
readsFrom: {}).map((QueryRow row) {
|
readsFrom: {}).map((QueryRow row) {
|
||||||
return JsonResult(
|
return JsonResult(
|
||||||
|
@ -1724,7 +1724,7 @@ abstract class _$CustomTablesDb extends GeneratedDatabase {
|
||||||
}
|
}
|
||||||
|
|
||||||
Selectable<int?> nullableQuery() {
|
Selectable<int?> nullableQuery() {
|
||||||
return customSelect('SELECT MAX(oid)FROM config',
|
return customSelect('SELECT MAX(oid) FROM config',
|
||||||
variables: [],
|
variables: [],
|
||||||
readsFrom: {config}).map((QueryRow row) => row.read<int?>('MAX(oid)'));
|
readsFrom: {config}).map((QueryRow row) => row.read<int?>('MAX(oid)'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -649,7 +649,7 @@ class NodeSqlBuilder extends AstVisitor<void, void> {
|
||||||
_identifier(e.name);
|
_identifier(e.name);
|
||||||
_symbol('(');
|
_symbol('(');
|
||||||
visit(e.parameters, arg);
|
visit(e.parameters, arg);
|
||||||
_symbol(')');
|
_symbol(')', spaceAfter: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
Loading…
Reference in New Issue