MCPcopy Create free account
hub / github.com/GoogleChrome/samples / cursorState

Function cursorState

sqlite-wasm-cos/sqlite3-node.mjs:17840–17852  ·  view source on GitHub ↗
(cursor, reset)

Source from the content-addressed store, hash-verified

17838 .filter(v=>!cache.rxJournalSuffix.test(v))
17839 });
17840 const cursorState = function(cursor, reset){
17841 const o = (cursor instanceof capi.sqlite3_vtab_cursor)
17842 ? cursor
17843 : VT.xCursor.get(cursor);
17844 if( reset || !o.vTabState ){
17845 o.vTabState = Object.assign(Object.create(ProtoCursor),{
17846 rowid: 0,
17847 names: Object.keys(cache.storagePool)
17848 .filter(v=>!cache.rxJournalSuffix.test(v))
17849 });
17850 }
17851 return o.vTabState;
17852 };
17853
17854 const dbg = 1 ? ()=>{} : (...args)=>debug("vtab",...args);
17855

Callers 1

theModuleFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected