Skip to content

Commit 40ffd16

Browse files
chore: wip
1 parent 07c5431 commit 40ffd16

8 files changed

+10
-22
lines changed

docs/features/pagination.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ async function getInfinitePosts(cursor?: string) {
172172
}
173173

174174
// Client-side infinite scroll usage
175-
let allPosts: any[] = []
175+
const allPosts: any[] = []
176176
let cursor: string | undefined
177177

178178
async function loadMorePosts() {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ export * from './config'
33
export * from './factory'
44
export * from './loader'
55
export * from './meta'
6+
export * from './migrations'
67
export * from './schema'
78
export * from './types'
8-
export * from './migrations'

test/client.crud-helpers.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, it, expect } from 'bun:test'
1+
import { describe, expect, it } from 'bun:test'
22
import { buildDatabaseSchema, buildSchemaMeta, createQueryBuilder } from '../src'
33

44
const models = {
@@ -47,5 +47,3 @@ describe('query builder - CRUD-style helpers availability', () => {
4747
expect(typeof q.execute).toBe('function')
4848
})
4949
})
50-
51-

test/client.dynamic-where.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { describe, it, expect, beforeAll } from 'bun:test'
2-
import { buildDatabaseSchema, buildSchemaMeta, createQueryBuilder, defineModels, defineModel } from '../src'
1+
import { beforeAll, describe, expect, it } from 'bun:test'
2+
import { buildDatabaseSchema, buildSchemaMeta, createQueryBuilder, defineModel, defineModels } from '../src'
33
import { config } from '../src/config'
44

55
const User = defineModel({
@@ -52,5 +52,3 @@ describe('dynamic whereX/orWhereX/andWhereX methods', () => {
5252
expect(sql).toMatch(/created_at/i)
5353
})
5454
})
55-
56-

test/client.hooks-softdeletes-relations-cursor.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { describe, it, expect, beforeAll } from 'bun:test'
2-
import { buildDatabaseSchema, buildSchemaMeta, createQueryBuilder, defineModels, defineModel } from '../src'
1+
import { beforeAll, describe, expect, it } from 'bun:test'
2+
import { buildDatabaseSchema, buildSchemaMeta, createQueryBuilder, defineModel, defineModels } from '../src'
33
import { config } from '../src/config'
44

55
const User = defineModel({
@@ -92,5 +92,3 @@ describe('hooks, soft deletes, relations and cursor pagination', () => {
9292
expect(sql.toLowerCase()).toContain('select')
9393
})
9494
})
95-
96-

test/client.model-facade.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, it, expect } from 'bun:test'
1+
import { describe, expect, it } from 'bun:test'
22
import { buildDatabaseSchema, buildSchemaMeta, createQueryBuilder } from '../src'
33

44
const models = {
@@ -75,5 +75,3 @@ describe('model-like facade usage examples (typed only)', () => {
7575
void UserModel.oldest('created_at')
7676
})
7777
})
78-
79-

test/client.retrieval-helpers.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { describe, it, expect } from 'bun:test'
2-
import { buildDatabaseSchema, buildSchemaMeta, createQueryBuilder, defineModels, defineModel } from '../src'
1+
import { describe, expect, it } from 'bun:test'
2+
import { buildDatabaseSchema, buildSchemaMeta, createQueryBuilder, defineModel, defineModels } from '../src'
33

44
const User = defineModel({
55
name: 'User',
@@ -39,5 +39,3 @@ describe('retrieval helpers', () => {
3939
expect('row' in q).toBe(true)
4040
})
4141
})
42-
43-

test/migrations.diff.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,3 @@ describe('migrations - diffing and hashing', () => {
119119
expect(sql.toLowerCase()).toContain('unique index')
120120
})
121121
})
122-
123-

0 commit comments

Comments
 (0)