Skip to content

Commit

Permalink
chore: added sqlserver test
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm committed Jan 24, 2024
1 parent 35c611b commit ee6c8c3
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
integration-tests:
strategy:
matrix:
dialect: [ mysql, postgres, sqlite ]
dialect: [ mysql, postgres, sqlite, mssql ]
language: [ ts, js ]
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions testdata/atlas-script.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ locals {
dev_url = {
mysql = "docker://mysql/8/dev"
postgres = "docker://postgres/15"
mssql = "docker://sqlserver/2022-latest"
sqlite = "sqlite://file::memory:?cache=shared"
}[var.dialect]
}
Expand Down
1 change: 1 addition & 0 deletions testdata/atlas-standalone.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ locals {
dev_url = {
mysql = "docker://mysql/8/dev"
postgres = "docker://postgres/15"
mssql = "docker://sqlserver/2022-latest"
sqlite = "sqlite://file::memory:?cache=shared"
}[var.dialect]
}
Expand Down
1 change: 1 addition & 0 deletions testdata/js/atlas-script.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ locals {
dev_url = {
mysql = "docker://mysql/8/dev"
postgres = "docker://postgres/15"
mssql = "docker://sqlserver/2022-latest"
sqlite = "sqlite://file::memory:?cache=shared"
}[var.dialect]
}
Expand Down
1 change: 1 addition & 0 deletions testdata/js/atlas-standalone.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ locals {
dev_url = {
mysql = "docker://mysql/8/dev"
postgres = "docker://postgres/15"
mssql = "docker://sqlserver/2022-latest"
sqlite = "sqlite://file::memory:?cache=shared"
}[var.dialect]
}
Expand Down
1 change: 1 addition & 0 deletions testdata/ts/atlas-script.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ locals {
dev_url = {
mysql = "docker://mysql/8/dev"
postgres = "docker://postgres/15"
mssql = "docker://sqlserver/2022-latest"
sqlite = "sqlite://file::memory:?cache=shared"
}[var.dialect]
}
Expand Down
1 change: 1 addition & 0 deletions testdata/ts/atlas-standalone.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ locals {
dev_url = {
mysql = "docker://mysql/8/dev"
postgres = "docker://postgres/15"
mssql = "docker://sqlserver/2022-latest"
sqlite = "sqlite://file::memory:?cache=shared"
}[var.dialect]
}
Expand Down
2 changes: 1 addition & 1 deletion testdata/ts/load-entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Blog as SqliteBlog } from "./entities/sqlite/Blog";
const dialect = process.argv[2] as Dialect;

// sqlite does not support enum, so we need to load different entities
if (dialect === "sqlite") {
if (dialect === "sqlite" || dialect === "mssql") {
loadEntities("sqlite", [SqliteUser, SqliteBlog]).then((sql) => {
console.log(sql);
});
Expand Down

0 comments on commit ee6c8c3

Please sign in to comment.