Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions internal/cli/build.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//go:build !(aws_s3 || bitbucket || cassandra || clickhouse || cockroachdb || firebird || github || gitlab || go_bindata || godoc_vfs || google_cloud_storage || mongodb || mysql || neo4j || pgx || pgx5 || postgres || redshift || rqlite || spanner || sqlserver || yugabytedb)
// +build !aws_s3,!bitbucket,!cassandra,!clickhouse,!cockroachdb,!firebird,!github,!gitlab,!go_bindata,!godoc_vfs,!google_cloud_storage,!mongodb,!mysql,!neo4j,!pgx,!pgx5,!postgres,!redshift,!rqlite,!spanner,!sqlserver,!yugabytedb

package cli

import (
_ "github.com/ClickHouse/clickhouse-go"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious why this was needed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copied from build_clickhouse.go.

import (
_ "github.com/ClickHouse/clickhouse-go"
_ "github.com/golang-migrate/migrate/v4/database/clickhouse"
)

_ "github.com/golang-migrate/migrate/v4/database/cassandra"
_ "github.com/golang-migrate/migrate/v4/database/clickhouse"
_ "github.com/golang-migrate/migrate/v4/database/cockroachdb"
_ "github.com/golang-migrate/migrate/v4/database/firebird"
_ "github.com/golang-migrate/migrate/v4/database/mongodb"
_ "github.com/golang-migrate/migrate/v4/database/mysql"
_ "github.com/golang-migrate/migrate/v4/database/neo4j"
_ "github.com/golang-migrate/migrate/v4/database/pgx"
_ "github.com/golang-migrate/migrate/v4/database/pgx/v5"
_ "github.com/golang-migrate/migrate/v4/database/postgres"
_ "github.com/golang-migrate/migrate/v4/database/redshift"
_ "github.com/golang-migrate/migrate/v4/database/rqlite"
_ "github.com/golang-migrate/migrate/v4/database/spanner"
_ "github.com/golang-migrate/migrate/v4/database/sqlserver"
_ "github.com/golang-migrate/migrate/v4/database/yugabytedb"
_ "github.com/golang-migrate/migrate/v4/source/aws_s3"
_ "github.com/golang-migrate/migrate/v4/source/bitbucket"
_ "github.com/golang-migrate/migrate/v4/source/github_ee"
_ "github.com/golang-migrate/migrate/v4/source/gitlab"
_ "github.com/golang-migrate/migrate/v4/source/go_bindata"
_ "github.com/golang-migrate/migrate/v4/source/godoc_vfs"
_ "github.com/golang-migrate/migrate/v4/source/google_cloud_storage"
)