MCPcopy Create free account
hub / github.com/Effect-TS/effect / add

Function add

packages/platform/browser/src/IndexedDbDatabase.ts:51–65  ·  view source on GitHub ↗
(
    this: IndexedDbSchema<any, any, any>,
    version: Version,
    migrate: (
      fromQuery: Transaction<any>,
      toQuery: Transaction<Version>
    ) => Effect.Effect<void, Error>
  )

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls 1

makeMigrationFunction · 0.85

Tested by

no test coverage detected