chore: update sqlc to v1.17.2 (#6920)

* WIP

* chore: Update sqlc to v1.17.2
This commit is contained in:
Marcin Tojek 2023-03-31 14:05:20 +02:00 committed by GitHub
parent 2612e32bac
commit 56f00a82e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 24 deletions

View File

@ -174,7 +174,7 @@ jobs:
- name: Install sqlc
run: |
curl -sSL https://github.com/kyleconroy/sqlc/releases/download/v1.16.0/sqlc_1.16.0_linux_amd64.tar.gz | sudo tar -C /usr/bin -xz sqlc
curl -sSL https://github.com/kyleconroy/sqlc/releases/download/v1.17.2/sqlc_1.17.2_linux_amd64.tar.gz | sudo tar -C /usr/bin -xz sqlc
- name: Install protoc-gen-go
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26
- name: Install protoc-gen-go-drpc

View File

@ -1,6 +1,6 @@
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.16.0
// sqlc v1.17.2
package database
@ -56,7 +56,7 @@ func (ns NullAPIKeyScope) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.APIKeyScope, nil
return string(ns.APIKeyScope), nil
}
func (e APIKeyScope) Valid() bool {
@ -115,7 +115,7 @@ func (ns NullAppSharingLevel) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.AppSharingLevel, nil
return string(ns.AppSharingLevel), nil
}
func (e AppSharingLevel) Valid() bool {
@ -180,7 +180,7 @@ func (ns NullAuditAction) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.AuditAction, nil
return string(ns.AuditAction), nil
}
func (e AuditAction) Valid() bool {
@ -249,7 +249,7 @@ func (ns NullBuildReason) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.BuildReason, nil
return string(ns.BuildReason), nil
}
func (e BuildReason) Valid() bool {
@ -312,7 +312,7 @@ func (ns NullLogLevel) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.LogLevel, nil
return string(ns.LogLevel), nil
}
func (e LogLevel) Valid() bool {
@ -376,7 +376,7 @@ func (ns NullLogSource) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.LogSource, nil
return string(ns.LogSource), nil
}
func (e LogSource) Valid() bool {
@ -436,7 +436,7 @@ func (ns NullLoginType) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.LoginType, nil
return string(ns.LoginType), nil
}
func (e LoginType) Valid() bool {
@ -499,7 +499,7 @@ func (ns NullParameterDestinationScheme) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.ParameterDestinationScheme, nil
return string(ns.ParameterDestinationScheme), nil
}
func (e ParameterDestinationScheme) Valid() bool {
@ -560,7 +560,7 @@ func (ns NullParameterScope) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.ParameterScope, nil
return string(ns.ParameterScope), nil
}
func (e ParameterScope) Valid() bool {
@ -620,7 +620,7 @@ func (ns NullParameterSourceScheme) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.ParameterSourceScheme, nil
return string(ns.ParameterSourceScheme), nil
}
func (e ParameterSourceScheme) Valid() bool {
@ -678,7 +678,7 @@ func (ns NullParameterTypeSystem) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.ParameterTypeSystem, nil
return string(ns.ParameterTypeSystem), nil
}
func (e ParameterTypeSystem) Valid() bool {
@ -737,7 +737,7 @@ func (ns NullProvisionerJobType) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.ProvisionerJobType, nil
return string(ns.ProvisionerJobType), nil
}
func (e ProvisionerJobType) Valid() bool {
@ -796,7 +796,7 @@ func (ns NullProvisionerStorageMethod) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.ProvisionerStorageMethod, nil
return string(ns.ProvisionerStorageMethod), nil
}
func (e ProvisionerStorageMethod) Valid() bool {
@ -852,7 +852,7 @@ func (ns NullProvisionerType) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.ProvisionerType, nil
return string(ns.ProvisionerType), nil
}
func (e ProvisionerType) Valid() bool {
@ -918,7 +918,7 @@ func (ns NullResourceType) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.ResourceType, nil
return string(ns.ResourceType), nil
}
func (e ResourceType) Valid() bool {
@ -992,7 +992,7 @@ func (ns NullUserStatus) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.UserStatus, nil
return string(ns.UserStatus), nil
}
func (e UserStatus) Valid() bool {
@ -1057,7 +1057,7 @@ func (ns NullWorkspaceAgentLifecycleState) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.WorkspaceAgentLifecycleState, nil
return string(ns.WorkspaceAgentLifecycleState), nil
}
func (e WorkspaceAgentLifecycleState) Valid() bool {
@ -1131,7 +1131,7 @@ func (ns NullWorkspaceAppHealth) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.WorkspaceAppHealth, nil
return string(ns.WorkspaceAppHealth), nil
}
func (e WorkspaceAppHealth) Valid() bool {
@ -1194,7 +1194,7 @@ func (ns NullWorkspaceTransition) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return ns.WorkspaceTransition, nil
return string(ns.WorkspaceTransition), nil
}
func (e WorkspaceTransition) Valid() bool {

View File

@ -1,6 +1,6 @@
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.16.0
// sqlc v1.17.2
package database

View File

@ -1,6 +1,6 @@
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.16.0
// sqlc v1.17.2
package database

View File

@ -53,7 +53,7 @@ RUN mkdir --parents "$GOPATH" && \
# charts and values files
go install github.com/norwoodj/helm-docs/cmd/helm-docs@v1.5.0 && \
# sqlc for Go code generation
go install github.com/kyleconroy/sqlc/cmd/sqlc@v1.16.0 && \
go install github.com/kyleconroy/sqlc/cmd/sqlc@v1.17.2 && \
# gcr-cleaner-cli used by CI to prune unused images
go install github.com/sethvargo/gcr-cleaner/cmd/gcr-cleaner-cli@v0.5.1 && \
# ruleguard for checking custom rules, without needing to run all of