You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
354 B
16 lines
354 B
import {WhereBuilder} from './type/WhereBuilder.ts'
|
|
|
|
/**
|
|
* Abstract base class for query builder scopes.
|
|
* @abstract
|
|
*/
|
|
export abstract class Scope {
|
|
/**
|
|
* Applies this scope to the incoming query.
|
|
* @param {WhereBuilder} query
|
|
* @return WhereBuilder
|
|
* @abstract
|
|
*/
|
|
abstract apply(query: WhereBuilder): WhereBuilder
|
|
}
|