Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
2b6105d
How long does starting PostgreSQL take?
kyleconroy Jan 2, 2024
6b6cd74
Update ddl_test to talk to local server
kyleconroy Jan 2, 2024
231b085
Re-run
kyleconroy Jan 2, 2024
2657f38
Create a new local sqltest package
kyleconroy Jan 2, 2024
7805817
Re-enabled some tests
kyleconroy Jan 3, 2024
83aab1a
Disable some tests again
kyleconroy Jan 3, 2024
840a4b7
Remove unused package
kyleconroy Jan 3, 2024
d265bc0
PostgreSQL 16
kyleconroy Jan 3, 2024
8998b20
fix
kyleconroy Jan 3, 2024
d79f780
start mysql too
kyleconroy Jan 3, 2024
5e3837b
Try to use the MySQL server
kyleconroy Jan 3, 2024
e8f553a
oops
kyleconroy Jan 3, 2024
0f3d476
SSL?
kyleconroy Jan 3, 2024
5607ecd
disable tls
kyleconroy Jan 3, 2024
e6868b6
Only run a small set of tests
kyleconroy Jan 3, 2024
1c1b5bb
Fix MySQL failures
kyleconroy Jan 3, 2024
d0cb520
Run all the tests
kyleconroy Jan 3, 2024
2c9edc1
A bunch of invalid MySQL schemas
kyleconroy Jan 3, 2024
f18905c
Get all the tests passing
kyleconroy Jan 3, 2024
e758085
Are they passing?
kyleconroy Jan 3, 2024
a0877f3
Fix last test
kyleconroy Jan 3, 2024
47294da
Test on all platforms
kyleconroy Jan 3, 2024
891ff92
fix Windows build
kyleconroy Jan 3, 2024
e7c32e9
Add new metadata key to exec.json
kyleconroy Jan 3, 2024
f742a02
Mark pg_vector as invalid for now
kyleconroy Jan 3, 2024
b0dad14
Skip two tests on Windows
kyleconroy Jan 3, 2024
452abd5
Only run Windows / MacOS on main
kyleconroy Jan 3, 2024
0c168ad
Merge branch 'main' into kyle/setup-postgresql
kyleconroy Jan 3, 2024
760e044
clean up
kyleconroy Jan 3, 2024
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
Prev Previous commit
Next Next commit
Re-enabled some tests
  • Loading branch information
kyleconroy committed Jan 3, 2024
commit 7805817386f860ce0e9824800a1e0849aff7efa8
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ jobs:
- name: test ./...
run: gotestsum --junitfile junit.xml -- --tags=examples -timeout 20m ./...
env:
# CI_SQLC_PROJECT_ID: ${{ secrets.CI_SQLC_PROJECT_ID }}
# CI_SQLC_AUTH_TOKEN: ${{ secrets.CI_SQLC_AUTH_TOKEN }}
# SQLC_AUTH_TOKEN: ${{ secrets.CI_SQLC_AUTH_TOKEN }}
CI_SQLC_PROJECT_ID: ${{ secrets.CI_SQLC_PROJECT_ID }}
CI_SQLC_AUTH_TOKEN: ${{ secrets.CI_SQLC_AUTH_TOKEN }}
SQLC_AUTH_TOKEN: ${{ secrets.CI_SQLC_AUTH_TOKEN }}
POSTGRESQL_SERVER_URI: ${{ steps.postgres.outputs.connection-uri }}
CGO_ENABLED: ${{ matrix.cgo }}

Expand Down
5 changes: 3 additions & 2 deletions examples/batch/postgresql/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ import (

"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/sqlc-dev/sqlc/internal/sqltest/hosted"

"github.com/sqlc-dev/sqlc/internal/sqltest/local"
)

func TestBatchBooks(t *testing.T) {
uri := hosted.PostgreSQL(t, []string{"schema.sql"})
uri := local.PostgreSQL(t, []string{"schema.sql"})

ctx := context.Background()

Expand Down
4 changes: 2 additions & 2 deletions examples/booktest/postgresql/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"

"github.com/sqlc-dev/sqlc/internal/sqltest/hosted"
"github.com/sqlc-dev/sqlc/internal/sqltest/local"
)

func TestBooks(t *testing.T) {
ctx := context.Background()
uri := hosted.PostgreSQL(t, []string{"schema.sql"})
uri := local.PostgreSQL(t, []string{"schema.sql"})
db, err := pgx.Connect(ctx, uri)
if err != nil {
t.Fatal(err)
Expand Down
4 changes: 0 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,6 @@ github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcU
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/tetratelabs/wazero v1.5.0 h1:Yz3fZHivfDiZFUXnWMPUoiW7s8tC1sjdBtlJn08qYa0=
github.com/tetratelabs/wazero v1.5.0/go.mod h1:0U0G41+ochRKoPKCJlh0jMg1CHkyfK8kDqiirMmKY8A=
github.com/wasilibs/go-pgquery v0.0.0-20231205013331-96e794bb074e h1:sGIC6/D0KqpA+qBSDSVDQswU/IJVYkbnUXnipgTLQWk=
github.com/wasilibs/go-pgquery v0.0.0-20231205013331-96e794bb074e/go.mod h1:KW0azBSWqkPZ71r+3O4qt8h6A/NisFLp0rbjZ3py4OE=
github.com/wasilibs/wazerox v0.0.0-20231117065139-b3503f4aeff6 h1:jwbU8u5TuXModzdEG4wI0g4FyuD7ROSttU86go5sPdU=
github.com/wasilibs/wazerox v0.0.0-20231117065139-b3503f4aeff6/go.mod h1:IQNVyA4d1hWIe23mlMMuqXjyWMdndgSlNx6FqBkwPsM=
github.com/wasilibs/go-pgquery v0.0.0-20231208014744-de63626a1e99 h1:HFee1ByN4FrqNVd53Mo28ccGO+g5gxqUV/gdvKMe4b8=
github.com/wasilibs/go-pgquery v0.0.0-20231208014744-de63626a1e99/go.mod h1:f2JMhFocVxY3VKMd9ykUxMnX4EVew9WOgjnfaNBB6C8=
github.com/wasilibs/wazerox v0.0.0-20231208014050-e6b725634531 h1:zVJ4SZgaEE9sEH2L9k1+eAvCNa/WAAnT9UiMa3/tQrI=
Expand Down