- Preparing search index...
- The search index is not available
@truffle/db
Type alias InitializeOptions
InitializeOptions: { network: Omit<Resources.Input<"networks">, "networkId" | "historicBlock">; settings?: IncludeSettings; } & ({ db: Db; provider: Provider; } | ReturnType<ReturnType<typeof forDb>["forProvider"]>)
Type declaration
-
network: Omit<Resources.Input<"networks">, "networkId" | "historicBlock">
-
Options for constructing a [[Network]] abstraction, required by [[initialize |
initialize()]].These options must include either:
db, a [[Db]] instance andprovider, JSON-RPC provider (for normal use), orrun, a provider-enabled [[Process.ProcessorRunner]] function, e.g. one instantiated via [[Process.Run.forDb]] (for internal/special-case use).In addition, these options must contain
networkwithnameinformation, as per the [[DataModel.NetworkInput | Network input]] specification.Optionally this may include
settingsto specify [[IncludeSettings]].