Skip to content

Commit b24def7

Browse files
Suman DeSuman De
authored andcommitted
go fmt
1 parent 520e301 commit b24def7

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

internal/codegen/golang/driver.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ func parseDriver(sqlPackage string) opts.SQLDriver {
1717

1818
// custom packages based on pgx/v5 (e.g., YugabyteDB smart drivers) should return
1919
// only the original driver when determining columnType, refer to the postgresType func.
20-
2120
func parseDriverPGType(sqlPackage string) opts.SQLDriver {
2221
switch sqlPackage {
2322
case opts.SQLPackagePGXV4:

internal/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ type SQL struct {
125125
// AnalyzerDatabase represents the database analyzer setting.
126126
// It can be a boolean (true/false) or the string "only" for database-only mode.
127127
type AnalyzerDatabase struct {
128-
value *bool // nil means not set, true/false for boolean values
129-
isOnly bool // true when set to "only"
128+
value *bool // nil means not set, true/false for boolean values
129+
isOnly bool // true when set to "only"
130130
}
131131

132132
// IsEnabled returns true if the database analyzer should be used.

internal/engine/clickhouse/convert.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@ func (c *cc) convertFunctionCall(n *chast.FunctionCall) *ast.FuncCall {
485485
Funcname: &ast.List{
486486
Items: []ast.Node{&ast.String{Str: n.Name}},
487487
},
488-
Location: n.Pos().Offset,
489-
AggDistinct: n.Distinct,
488+
Location: n.Pos().Offset,
489+
AggDistinct: n.Distinct,
490490
}
491491

492492
// Convert arguments

internal/engine/clickhouse/parse.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ func (p *Parser) Parse(r io.Reader) ([]ast.Statement, error) {
5757
// https://clickhouse.com/docs/en/sql-reference/syntax#comments
5858
func (p *Parser) CommentSyntax() source.CommentSyntax {
5959
return source.CommentSyntax{
60-
Dash: true, // -- comment
61-
SlashStar: true, // /* comment */
62-
Hash: true, // # comment (ClickHouse supports this)
60+
Dash: true, // -- comment
61+
SlashStar: true, // /* comment */
62+
Hash: true, // # comment (ClickHouse supports this)
6363
}
6464
}

internal/engine/sqlite/convert.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ func (c *cc) convertUnaryExpr(n *parser.Expr_unaryContext) ast.Node {
826826
if opCtx.MINUS() != nil {
827827
// Negative number: -expr
828828
return &ast.A_Expr{
829-
Name: &ast.List{Items: []ast.Node{&ast.String{Str: "-"}}},
829+
Name: &ast.List{Items: []ast.Node{&ast.String{Str: "-"}}},
830830
Rexpr: expr,
831831
}
832832
}
@@ -837,7 +837,7 @@ func (c *cc) convertUnaryExpr(n *parser.Expr_unaryContext) ast.Node {
837837
if opCtx.TILDE() != nil {
838838
// Bitwise NOT: ~expr
839839
return &ast.A_Expr{
840-
Name: &ast.List{Items: []ast.Node{&ast.String{Str: "~"}}},
840+
Name: &ast.List{Items: []ast.Node{&ast.String{Str: "~"}}},
841841
Rexpr: expr,
842842
}
843843
}

0 commit comments

Comments
 (0)