16 lines
328 B
Markdown
16 lines
328 B
Markdown
- Add possibility to have placeholders in `.limit()` and `.offset()`
|
|
|
|
```ts
|
|
const stmt = db
|
|
.select({
|
|
id: usersTable.id,
|
|
name: usersTable.name,
|
|
})
|
|
.from(usersTable)
|
|
.limit(placeholder('limit'))
|
|
.offset(placeholder('offset'))
|
|
.prepare('stmt');
|
|
|
|
const result = await stmt.execute({ limit: 1, offset: 1 });
|
|
```
|