MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / operation

Method operation

src/function/sequence/sequence_functions.cpp:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26struct NextVal {
27 static void operation(string_t& input, ValueVector& result, void* dataPtr) {
28 auto ctx = reinterpret_cast<FunctionBindData*>(dataPtr)->clientContext;
29 auto cnt = reinterpret_cast<FunctionBindData*>(dataPtr)->count;
30 auto catalog = catalog::Catalog::Get(*ctx);
31 auto transaction = transaction::Transaction::Get(*ctx);
32 auto sequenceName = input.getAsString();
33 auto sequenceEntry =
34 catalog->getSequenceEntry(transaction, sequenceName, ctx->useInternalCatalogEntry());
35 sequenceEntry->nextKVal(transaction, cnt, result);
36 result.state->getSelVectorUnsafe().setSelSize(cnt);
37 }
38};
39
40function_set CurrValFunction::getFunctionSet() {

Callers

nothing calls this directly

Calls 4

getAsStringMethod · 0.80
getSequenceEntryMethod · 0.80
nextKValMethod · 0.80
setSelSizeMethod · 0.80

Tested by

no test coverage detected