(
this: IndexedDbSchema<any, any, any>,
version: Version,
migrate: (
fromQuery: Transaction<any>,
toQuery: Transaction<Version>
) => Effect.Effect<void, Error>
)
| 49 | } |
| 50 | }), |
| 51 | add<Version extends IndexedDbVersion.AnyWithProps>( |
| 52 | this: IndexedDbSchema<any, any, any>, |
| 53 | version: Version, |
| 54 | migrate: ( |
| 55 | fromQuery: Transaction<any>, |
| 56 | toQuery: Transaction<Version> |
| 57 | ) => Effect.Effect<void, Error> |
| 58 | ) { |
| 59 | return makeMigration({ |
| 60 | fromVersion: this.version, |
| 61 | version, |
| 62 | migrate, |
| 63 | previous: this |
| 64 | }) |
| 65 | }, |
| 66 | layer(this: IndexedDbSchema<any, any, any>, databaseName: string) { |
| 67 | return layer(databaseName, this) |
| 68 | } |
nothing calls this directly
no test coverage detected