| 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 | |