| 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); |
no test coverage detected