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

Function GetRawRowJS

src/util/data.cpp:113–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 v8::Local<v8::Value> GetRawRowJS(v8::Isolate* isolate, v8::Local<v8::Context> ctx, sqlite3_stmt* handle, bool safe_ints) {
114 v8::Local<v8::Array> row = v8::Array::New(isolate);
115 int column_count = sqlite3_column_count(handle);
116 for (int i = 0; i < column_count; ++i) {
117 row->Set(ctx, i, Data::GetValueJS(isolate, handle, i, safe_ints)).FromJust();
118 }
119 return row;
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);

Callers 1

GetRowJSFunction · 0.85

Calls 1

GetValueJSFunction · 0.85

Tested by

no test coverage detected