feat(core): Add support for SQLite connection pooling (#8722)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-03-14 13:45:16 +01:00
committed by GitHub
parent d85d0ecf45
commit c4c319d7cf
6 changed files with 87 additions and 21 deletions

View File

@@ -34,6 +34,33 @@ jobs:
path: ./packages/**/dist
key: ${{ github.sha }}:db-tests
sqlite-pooled:
name: SQLite Pooled
runs-on: ubuntu-latest
needs: build
timeout-minutes: 20
env:
DB_TYPE: sqlite
DB_SQLITE_POOL_SIZE: 4
steps:
- uses: actions/checkout@v4.1.1
- run: corepack enable
- uses: actions/setup-node@v4.0.1
with:
node-version: 18.x
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- name: Restore cached build artifacts
uses: actions/cache/restore@v4.0.0
with:
path: ./packages/**/dist
key: ${{ github.sha }}:db-tests
- name: Test SQLite Pooled
working-directory: packages/cli
run: pnpm jest --coverage
mysql:
name: MySQL
runs-on: ubuntu-latest