Skip to content

Commit

Permalink
[JET-1828] feature: support data pointer for filters (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanppo authored Aug 15, 2024
1 parent 3381034 commit 03350e7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions types/persistence_schema/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { Filter } from './filter.ts'
import type { OffsetPagination } from './pagination.ts'
import type { ObjectReturning } from './returning.ts'
import type { Order, Sorters } from './sorting.ts'
import type { ColumnType } from './types.ts'
import type { ColumnType, DataPointer } from './types.ts'

export interface ColumnDef {
name: string
Expand Down Expand Up @@ -50,22 +50,22 @@ export interface InsertAction {
export interface UpdateAction {
schema: Schema
paramsSchema: JSONSchema
filter: Filter
filter: DataPointer | Filter
changeset: Changeset<Change>
returningSchema: Array<ObjectReturning>
}

export interface DeleteAction {
schema: Schema
paramsSchema: JSONSchema
filter: Filter
filter: DataPointer | Filter
returningSchema: Array<ObjectReturning>
}

export interface GetOneAction {
schema: Schema
paramsSchema: JSONSchema
filter: Filter
filter: DataPointer | Filter
fetchingSchema: Array<Fetching>
returningSchema: Array<ObjectReturning>
}
Expand All @@ -79,20 +79,20 @@ export interface BulkInsertAction {
export interface BulkUpdateAction {
schema: Schema
paramsSchema: JSONSchema
filter: Filter
filter: DataPointer | Filter
changeset: Changeset<ColumnChange>
}

export interface BulkDeleteAction {
schema: Schema
paramsSchema: JSONSchema
filter: Filter
filter: DataPointer | Filter
}

export interface ListAction {
schema: Schema
paramsSchema: JSONSchema
filter: Filter
filter: DataPointer | Filter
sorting?: Sorters
pagination: OffsetPagination
fetchingSchema: Array<Fetching>
Expand Down

0 comments on commit 03350e7

Please sign in to comment.