Skip to content

Commit

Permalink
format source and regenerate end to end test
Browse files Browse the repository at this point in the history
  • Loading branch information
hakobera committed May 8, 2023
1 parent be36450 commit 44c3ec7
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions internal/codegen/golang/sqlite_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,6 @@ func sqliteType(req *plugin.CodeGenRequest, col *plugin.Column) string {
default:
log.Printf("unknown SQLite type: %s\n", dt)
return "interface{}"

}
}
2 changes: 1 addition & 1 deletion internal/endtoend/testdata/named_param/sqlite/sqlc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"queries": "query.sql"
}
]
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CREATE TABLE foo (name text not null);

-- name: FuncParamIdent :many
SELECT name FROM foo WHERE name = sqlc.arg(slug) and name = sqlc.arg(slug);
SELECT name FROM foo WHERE name = sqlc.arg(slug);

-- name: FuncParamString :many
SELECT name FROM foo WHERE name = sqlc.arg('slug');
2 changes: 1 addition & 1 deletion internal/endtoend/testdata/sqlc_arg/sqlite/sqlc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"queries": "query.sql"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"engine": "sqlite"
}
]
}
}
2 changes: 1 addition & 1 deletion internal/endtoend/testdata/sqlc_embed/sqlite/sqlc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"queries": "query.sql"
}
]
}
}
2 changes: 1 addition & 1 deletion internal/endtoend/testdata/sqlc_narg/sqlite/sqlc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
}
}
]
}
}
2 changes: 1 addition & 1 deletion internal/endtoend/testdata/sqlc_slice/sqlite/sqlc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"queries": "query.sql"
}
]
}
}

0 comments on commit 44c3ec7

Please sign in to comment.