Skip to content
Closed
Show file tree
Hide file tree
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
40 changes: 32 additions & 8 deletions .github/workflows/ci-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,45 @@ on:
- 'docs/**'
jobs:
build:
if: false
name: test
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: '1.26.5'
- name: install ./...
run: go install ./...
- name: Build sqlc from this checkout
run: |
go build -o "$RUNNER_TEMP/sqlc" ./cmd/sqlc
echo "SQLC=$RUNNER_TEMP/sqlc" >> "$GITHUB_ENV"
- uses: actions/checkout@v7
with:
repository: sqlc-dev/sqlc-gen-typescript
repository: bonakodo/sqlc-gen-typescript-native
path: typescript
# v0.1.3
ref: daaf539092421adc15f6c3164279a3470716b560
- run: sqlc diff
working-directory: typescript/examples
# v0.4.0
ref: 1942c66cebc201e85fbd79fbe162a2ce6b47a666
persist-credentials: false
- uses: denoland/setup-deno@v2
with:
deno-version: "v2.9.6"
- uses: actions/setup-node@v7
with:
node-version: "26.8.1"
cache: npm
cache-dependency-path: typescript/tests/integration/package-lock.json
- name: Install SQLite shared library
run: |
sudo apt-get update
sudo apt-get install -y libsqlite3-0
sqlite_library=$(dpkg -L libsqlite3-0 | sed -n '/\/libsqlite3\.so\.0$/p')
test -f "$sqlite_library"
echo "DENO_SQLITE_PATH=$sqlite_library" >> "$GITHUB_ENV"
- run: deno task tools
working-directory: typescript
- name: Test generation and driver runtimes
run: deno task integration
working-directory: typescript
- name: Check generated example
run: '"$SQLC" diff'
working-directory: typescript/examples/deno-sqlite
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Check out [an interactive example](https://play.sqlc.dev/) to see it in action,
- [sqlc-gen-go](https://github.com/sqlc-dev/sqlc-gen-go)
- [sqlc-gen-kotlin](https://github.com/sqlc-dev/sqlc-gen-kotlin)
- [sqlc-gen-python](https://github.com/sqlc-dev/sqlc-gen-python)
- [sqlc-gen-typescript](https://github.com/sqlc-dev/sqlc-gen-typescript)
- [sqlc-gen-typescript-native](https://github.com/bonakodo/sqlc-gen-typescript-native)

Additional languages can be added via [plugins](https://docs.sqlc.dev/en/latest/reference/language-support.html#community-language-support).

Expand Down
4 changes: 2 additions & 2 deletions docs/reference/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ If you run into any issues with the updated dependencies, please [open an issue]

- Add name to query set configuration (#3011)
- Add a sidebar link for `push`, add Go plugin link (#3023)
- Update banner for sqlc-gen-typescript (#3036)
- Update banner for the TypeScript plugin (#3036)
- Add strict_order_by in doc (#3044)
- Re-order the migration tools list (#3064)

Expand All @@ -434,7 +434,7 @@ If you run into any issues with the updated dependencies, please [open an issue]

- (endtoend) Enable for more build targets (#3041)
- (endtoend) Run MySQL and PostgreSQL locally on the runner (#3095)
- (typescript) Test against sqlc-gen-typescript (#3046)
- (typescript) Test against the TypeScript plugin (#3046)
- Add tests for omit_sqlc_version (#3020)
- Split schema and query for test (#3094)

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/language-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| Go | [sqlc-gen-go](https://github.com/sqlc-dev/sqlc-gen-go) | Stable | Stable | Beta |
| Kotlin | [sqlc-gen-kotlin](https://github.com/sqlc-dev/sqlc-gen-kotlin) | Beta | Beta | Not implemented |
| Python | [sqlc-gen-python](https://github.com/sqlc-dev/sqlc-gen-python) | Beta | Beta | Not implemented |
| TypeScript | [sqlc-gen-typescript](https://github.com/sqlc-dev/sqlc-gen-typescript) | Beta | Beta | Not implemented |
| TypeScript | [sqlc-gen-typescript-native](https://github.com/bonakodo/sqlc-gen-typescript-native) | Beta | Beta | Beta |

## Community language support

Expand Down
Loading