MCPcopy
hub / github.com/kysely-org/kysely / executeTakeFirstOrThrow

Method executeTakeFirstOrThrow

src/util/executable.ts:30–30  ·  view source on GitHub ↗

* Executes the query and returns the first result or throws if * the query returned no result. * * By default an instance of NoResultError is thrown, but you can * provide a custom error class, or callback to throw a different * error.

(
    options?:
      | ExecuteTakeFirstOrThrowOptions
      | ExecuteTakeFirstOrThrowOptions['errorConstructor'],
  )

Source from the content-addressed store, hash-verified

28 * error.
29 */
30 executeTakeFirstOrThrow(
31 options?:
32 | ExecuteTakeFirstOrThrowOptions
33 | ExecuteTakeFirstOrThrowOptions['errorConstructor'],

Callers 15

insertUserFunction · 0.65
testKyselyAnySelectsFunction · 0.65
testKyselyAnyInsertsFunction · 0.65
testKyselyAnyUpdatesFunction · 0.65
testKyselyAnyDeletesFunction · 0.65
testSelectSingleFunction · 0.65
testSelectAllFunction · 0.65
testIfFunction · 0.65
testManyNestedSubqueriesFunction · 0.65
testUsingFunction · 0.65
testReturningFunction · 0.65
testOutputFunction · 0.65

Implementers 5

UpdateQueryBuildersrc/query-builder/update-query-builder
DeleteQueryBuildersrc/query-builder/delete-query-builder
WheneableMergeQueryBuildersrc/query-builder/merge-query-builder.
SelectQueryBuilderImplsrc/query-builder/select-query-builder
InsertQueryBuildersrc/query-builder/insert-query-builder

Calls

no outgoing calls

Tested by 2

insertSomethingFunction · 0.52
insertSomethingElseFunction · 0.52