Skip to content

Commit

Permalink
build(sqlite): Disable modernc for WASM (#3048)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleconroy committed Dec 8, 2023
1 parent 6bae4a2 commit 7f3273d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
1 change: 0 additions & 1 deletion internal/cmd/vet.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"github.com/jackc/pgx/v5"
"github.com/spf13/cobra"
"google.golang.org/protobuf/encoding/protojson"
_ "modernc.org/sqlite"

"github.com/sqlc-dev/sqlc/internal/config"
"github.com/sqlc-dev/sqlc/internal/debug"
Expand Down
7 changes: 7 additions & 0 deletions internal/cmd/vet_modernc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//go:build !wasm

package cmd

import (
_ "modernc.org/sqlite"
)
2 changes: 0 additions & 2 deletions internal/sqltest/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import (
"testing"

"github.com/sqlc-dev/sqlc/internal/sql/sqlpath"

_ "modernc.org/sqlite"
)

func SQLite(t *testing.T, migrations []string) (*sql.DB, func()) {
Expand Down
7 changes: 7 additions & 0 deletions internal/sqltest/sqlite_modernc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//go:build !wasm

package sqltest

import (
_ "modernc.org/sqlite"
)

0 comments on commit 7f3273d

Please sign in to comment.