MCPcopy
hub / github.com/remix-run/remix / asQueryTableInput

Function asQueryTableInput

packages/data-table/src/lib/database/helpers.ts:23–31  ·  view source on GitHub ↗
(
  table: table,
)

Source from the content-addressed store, hash-verified

21import { loadRowsWithRelationsForQuery } from './query-execution.ts'
22
23export function asQueryTableInput<table extends AnyTable>(
24 table: table,
25): QueryTableInput<TableName<table>, TableRow<table>, TablePrimaryKey<table>> {
26 return table as unknown as QueryTableInput<
27 TableName<table>,
28 TableRow<table>,
29 TablePrimaryKey<table>
30 >
31}
32
33export function getPrimaryKeyWhere<table extends AnyTable>(
34 table: table,

Callers 10

createMethod · 0.90
createManyMethod · 0.90
findMethod · 0.90
findOneMethod · 0.90
findManyMethod · 0.90
countMethod · 0.90
updateMethod · 0.90
updateManyMethod · 0.90
deleteMethod · 0.90
deleteManyMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…