MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / GetRowJS

Function GetRowJS

src/util/data.cpp:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 }
121
122 v8::Local<v8::Value> GetRowJS(v8::Isolate* isolate, v8::Local<v8::Context> ctx, sqlite3_stmt* handle, bool safe_ints, char mode) {
123 if (mode == FLAT) return GetFlatRowJS(isolate, ctx, handle, safe_ints);
124 if (mode == PLUCK) return GetValueJS(isolate, handle, 0, safe_ints);
125 if (mode == EXPAND) return GetExpandedRowJS(isolate, ctx, handle, safe_ints);
126 if (mode == RAW) return GetRawRowJS(isolate, ctx, handle, safe_ints);
127 assert(false);
128 return v8::Local<v8::Value>();
129 }
130
131#else
132

Callers 2

NODE_METHODFunction · 0.85
NextMethod · 0.85

Calls 4

GetFlatRowJSFunction · 0.85
GetValueJSFunction · 0.85
GetExpandedRowJSFunction · 0.85
GetRawRowJSFunction · 0.85

Tested by

no test coverage detected