Skip to content

Commit

Permalink
vochain/indexer: bump sqlc
Browse files Browse the repository at this point in the history
No visible changes that affect us,
other than no longer needing the int64 override.

While here, I noticed an unused constant.
  • Loading branch information
mvdan authored and p4u committed Oct 27, 2023
1 parent e223f03 commit aea6db7
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 19 deletions.
2 changes: 1 addition & 1 deletion vochain/indexer/db/blocks.sql.go

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

2 changes: 1 addition & 1 deletion vochain/indexer/db/db.go

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

2 changes: 1 addition & 1 deletion vochain/indexer/db/models.go

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

2 changes: 1 addition & 1 deletion vochain/indexer/db/processes.sql.go

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

2 changes: 1 addition & 1 deletion vochain/indexer/db/token_fees.sql.go

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

2 changes: 1 addition & 1 deletion vochain/indexer/db/token_transfers.sql.go

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

2 changes: 1 addition & 1 deletion vochain/indexer/db/transactions.sql.go

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

2 changes: 1 addition & 1 deletion vochain/indexer/db/votes.sql.go

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

8 changes: 1 addition & 7 deletions vochain/indexer/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,11 @@ import (
_ "github.com/mattn/go-sqlite3"
)

//go:generate go run github.com/sqlc-dev/sqlc/cmd/sqlc@v1.21.0 generate
//go:generate go run github.com/sqlc-dev/sqlc/cmd/sqlc@v1.23.0 generate

//go:embed migrations/*.sql
var embedMigrations embed.FS

const (
// MaxEnvelopeListSize is the maximum number of envelopes a process can store.
// 8.3M seems enough for now
MaxEnvelopeListSize = 32 << 18
)

// EventListener is an interface used for executing custom functions during the
// events of the tally of a process.
type EventListener interface {
Expand Down
4 changes: 0 additions & 4 deletions vochain/indexer/sqlc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ sql:
emit_prepared_queries: true
omit_unused_structs: true
overrides:
# Defaults to int32 for integers, which is a bit small.
- db_type: "int"
go_type: "int64"

# Force these blobs to be our "bytes" types.
- column: "processes.id"
go_type: "go.vocdoni.io/dvote/types.ProcessID"
Expand Down

0 comments on commit aea6db7

Please sign in to comment.