File tree Expand file tree Collapse file tree 4 files changed +8
-11
lines changed
src/persisters/common/database Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ export const createTabularPersister = <
145145 return ! objIsEmpty ( tables ) || ! isUndefined ( values )
146146 ? [ tables as Tables , values as Values ]
147147 : undefined ;
148- } ) ) as any ; // TODO
148+ } ) ) as any ;
149149
150150 const setPersisted = async (
151151 getContent : ( ) => PersistedContent < Persist > ,
@@ -154,10 +154,10 @@ export const createTabularPersister = <
154154 await transaction ( async ( ) => {
155155 await refreshSchema ( ) ;
156156 if ( ! isUndefined ( changes ) ) {
157- await saveTables ( changes [ 0 ] as any , true ) ; // TODO
158- await saveValues ( changes [ 1 ] as any , true ) ; // TODO
157+ await saveTables ( changes [ 0 ] as any , true ) ;
158+ await saveValues ( changes [ 1 ] as any , true ) ;
159159 } else {
160- const [ tables , values ] = getContent ( ) as any ; // TODO
160+ const [ tables , values ] = getContent ( ) as any ;
161161 await saveTables ( tables ) ;
162162 await saveValues ( values ) ;
163163 }
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ const getMockedDatabase = <Location>(
237237 autoLoadPause = 2 ,
238238 autoLoadIntervalSeconds = 0.001 ,
239239 _isPostgres = false ,
240- _supportsMergeableStore = false ,
240+ _supportsMultipleConnections = false ,
241241) : Persistable < Location > => {
242242 const mockDatabase = {
243243 beforeEach : mockFetchWasm ,
Original file line number Diff line number Diff line change @@ -505,9 +505,6 @@ describe.each(Object.entries(ALL_VARIANTS))(
505505 } ) ;
506506
507507 test ( 'autoLoad, table dropped and recreated' , async ( ) => {
508- if ( name == 'pglite' ) {
509- return ;
510- }
511508 await setDatabase ( db , {
512509 tinybase : [
513510 'CREATE TABLE "tinybase" ("_id" ' +
Original file line number Diff line number Diff line change @@ -1004,9 +1004,9 @@ describe.each(Object.entries(ALL_VARIANTS))(
10041004 } ) ;
10051005
10061006 test ( 'autoLoad, table dropped and recreated' , async ( ) => {
1007- if ( name == 'pglite' ) {
1008- return ;
1009- }
1007+ // if (name == 'pglite') {
1008+ // return;
1009+ // }
10101010 await setDatabase ( db , {
10111011 t1 : [
10121012 'CREATE TABLE "t1" ("_id" ' +
You can’t perform that action at this time.
0 commit comments