mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 16:06:01 +00:00
unified prettier
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import { SqlDumper } from "@dbgate/types";
|
||||
import { Expression, ColumnRefExpression } from "./types";
|
||||
import { dumpSqlSourceRef } from "./dumpSqlSource";
|
||||
import { SqlDumper } from '@dbgate/types';
|
||||
import { Expression, ColumnRefExpression } from './types';
|
||||
import { dumpSqlSourceRef } from './dumpSqlSource';
|
||||
|
||||
export function dumpSqlExpression(dmp: SqlDumper, expr: Expression) {
|
||||
switch (expr.exprType) {
|
||||
case "column":
|
||||
case 'column':
|
||||
{
|
||||
if (expr.source) {
|
||||
if (dumpSqlSourceRef(dmp, expr.source)) {
|
||||
dmp.put(".");
|
||||
dmp.put('.');
|
||||
}
|
||||
}
|
||||
dmp.put("%i", expr.columnName);
|
||||
dmp.put('%i', expr.columnName);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user