MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / offset

Method offset

packages/sql/src/query/QueryBuilder.ts:2009–2013  ·  view source on GitHub ↗

* Sets an OFFSET clause to skip a number of results. * * @example * ```ts * qb.select('*').limit(10).offset(20); // Results 21-30 * ```

(offset?: number)

Source from the content-addressed store, hash-verified

2007 * ```
2008 */
2009 offset(offset?: number): SelectQueryBuilder<Entity, RootAlias, Hint, Context, RawAliases, Fields, CTEs> {
2010 this.ensureNotFinalized();
2011 this.#state.offset = offset;
2012 return this as SelectQueryBuilder<Entity, RootAlias, Hint, Context, RawAliases, Fields, CTEs>;
2013 }
2014
2015 withSchema(schema?: string): this {
2016 this.ensureNotFinalized();

Callers 15

limitMethod · 0.95
getNativeQueryMethod · 0.45
getCountMethod · 0.45
wrapPaginateSubQueryMethod · 0.45
wrapPaginateSubQueryMethod · 0.45
GHx6.test.tsFile · 0.45
GHx6.mssql.test.tsFile · 0.45

Calls 1

ensureNotFinalizedMethod · 0.95

Tested by

no test coverage detected