Skip to content
Merged
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
42 changes: 42 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: ci

on:
push:
branches:
- 'main'

jobs:
wrangler:
name: wrangler
runs-on: ubuntu-24.04-arm
# Cache even on failure
continue-on-error: true
steps:
- name: Deep checkout branch
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Setup node
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'pnpm'

- name: Install dependencies
run: pnpm i --no-frozen-lockfile --prefer-offline

- name: Build affected packages
shell: bash
run: pnpm --filter '...[main^]...' build

- name: Deploy affected apps to Cloudflare
run: pnpm --filter '[main^]' wrangler:deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
test:
name: Test
name: test
runs-on: ubuntu-24.04-arm
# Cache even on failure
continue-on-error: true
Expand Down
7 changes: 3 additions & 4 deletions examples/benchmark/src/components/database/stoolapDB.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { createContext } from 'solid-js'

const STOOLAP_WASM_PATH = '../../assets/wasm/stoolap.js'
import type { InitOutput } from '../../assets/wasm/stoolap.js'

export type StoolapExecuteRows = {
type: 'rows'
Expand Down Expand Up @@ -31,10 +30,10 @@ export type StoolapDatabase = {
free?: () => void
}

let initPromise: Promise<void> | null = null
let initPromise: Promise<InitOutput> | null = null

export const stoolapFactory = async (): Promise<StoolapDatabase> => {
const wasm = await import(STOOLAP_WASM_PATH)
const wasm = await import('../../assets/wasm/stoolap.js')
if (!initPromise) {
initPromise = wasm.default()
}
Expand Down
12 changes: 6 additions & 6 deletions examples/benchmark/src/components/sqlTest.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createResource } from 'solid-js'
import { DuckdbDB, duckdbFactory } from './database/duckdbDB.tsx'
import { DuckdbSchemaMigrator } from './database/duckdbSchemaMigrator.tsx'
// import { DuckdbDB, duckdbFactory } from './database/duckdbDB.tsx'
// import { DuckdbSchemaMigrator } from './database/duckdbSchemaMigrator.tsx'
import { PgliteDB, pgliteFactory } from './database/pgliteDB.tsx'
import { PgliteSchemaMigrator } from './database/pgliteSchemaMigrator.tsx'
import { SqliteDB, sqliteFactory } from './database/sqliteDB.tsx'
Expand All @@ -10,7 +10,7 @@ import { StoolapSchemaMigrator } from './database/stoolapSchemaMigrator.tsx'
import { TanstackDB, tanstackDbFactory } from './database/tanstackDB.tsx'
import { TursoDB, tursoFactory } from './database/tursoDB.tsx'
import { TursoSchemaMigrator } from './database/tursoSchemaMigrator.tsx'
import { TestDuckdbQuery } from './test/testDuckdbQuery.tsx'
// import { TestDuckdbQuery } from './test/testDuckdbQuery.tsx'
import { TestPgliteDbIvm } from './test/testPgliteDbIvm.tsx'
import { TestPgliteDbQuery } from './test/testPgliteDbQuery.tsx'
import { TestSqliteQuery } from './test/testSqliteQuery.tsx'
Expand All @@ -21,7 +21,7 @@ import { UsageMonitor } from './usageMonitor.tsx'

export default function SqlTest(props: { query: string; rowCount: number }) {
const [tursoQueryDb] = createResource(tursoFactory)
const [duckdbQueryDb] = createResource(duckdbFactory)
// const [duckdbQueryDb] = createResource(duckdbFactory)
const [stoolapQueryDb] = createResource(stoolapFactory)

return (
Expand All @@ -36,13 +36,13 @@ export default function SqlTest(props: { query: string; rowCount: number }) {
</TanstackDB.Provider>
</article>

<article>
{/* <article>
<DuckdbDB.Provider value={duckdbQueryDb.latest!}>
<DuckdbSchemaMigrator>
<TestDuckdbQuery query={props.query} rowCount={props.rowCount} />
</DuckdbSchemaMigrator>
</DuckdbDB.Provider>
</article>
</article> */}

<article>
<StoolapDB.Provider value={stoolapQueryDb.latest!}>
Expand Down