本页还没有译文
本页 11 段还没译成Português (BR),下面显示的是英文原文。compileSQLite
还没翻译译自英文(tanstack.com)本页 11 段都还没译
function compileSQLite(options, compileOptions?): SQLiteCompiledQuery;Defined in: sqlite-compiler.ts:45
Compiles TanStack DB LoadSubsetOptions to SQLite query components.
Parameters
options
LoadSubsetOptions
compileOptions?
Returns
Example
const compiled = compileSQLite({
where: { type: 'func', name: 'gt', args: [
{ type: 'ref', path: ['price'] },
{ type: 'val', value: 100 }
]},
orderBy: [{ expression: { type: 'ref', path: ['price'] }, compareOptions: { direction: 'desc', nulls: 'last' } }],
limit: 50
})
// Result: { where: '"price" > ?', orderBy: '"price" DESC', limit: 50, params: [100] }AI 翻译查看英文原文