Add Select pagination

This commit is contained in:
2026-04-12 08:32:00 +01:00
parent 31a7fb40cb
commit dea25b71c2
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -383,7 +383,7 @@ export default function sqlGenerator({ tableName, genObject, dbFullName, count }
}
if (genObject?.limit && !count)
queryString += ` LIMIT ${genObject.limit}`;
if (genObject?.offset && !count)
if ((genObject?.offset || genObject?.page) && !count)
queryString += ` OFFSET ${genObject.offset}`;
return {
string: queryString,
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@moduletrace/bun-sqlite",
"version": "1.0.29",
"version": "1.0.30",
"description": "SQLite manager for Bun",
"author": "Benjamin Toby",
"main": "dist/index.js",
+1 -1
View File
@@ -513,7 +513,7 @@ export default function sqlGenerator<
}
if (genObject?.limit && !count) queryString += ` LIMIT ${genObject.limit}`;
if (genObject?.offset && !count)
if ((genObject?.offset || genObject?.page) && !count)
queryString += ` OFFSET ${genObject.offset}`;
return {