This substreams contains dbout_to_graphout
module enabling database changes conversion into entity changes.
This substreams package could be imported in another substreams, using imports, in the substreams manifest. After being imported, the module dbout_to_graphout
can be used by another module implementing the use
attribute. The module using dbout_to_graphout
could override its inputs, and its initial block.
Note: Each input should have the same output type than the corresponding overrided input
specVersion: v0.1.0
package:
name: byac
version: v0.1.0
imports:
converter: spkg.io/streamingfast/substreams-db-graph-converter-v0.1.0.spkg
modules:
...
- name: db_out
kind: map
initialBlock: 12287507
inputs:
- map: map_events
output:
type: proto:sf.substreams.sink.database.v1.DatabaseChanges
- name: graph_out
use: converter:dbout_to_graphout
inputs:
- map: db_out
In this example, the graph_out
module, uses dbout_to_graphout
imported module, and overrides its inputs by the map module db_out
substreams gui substreams-db-graph-converter@v0.1.1 example_dbout
substreams gui substreams-db-graph-converter@v0.1.1 dbout_to_graphout
message
DatabaseChanges
message
TableChange
message
CompositePrimaryKey
message
Field
message
EntityChanges
message
EntityChange
message
Value
message
Array
message
Field
message
FileDescriptorSet
message
FileDescriptorProto
message
DescriptorProto
message
ExtensionRangeOptions
message
FieldDescriptorProto
message
OneofDescriptorProto
message
EnumDescriptorProto
message
EnumValueDescriptorProto
message
ServiceDescriptorProto
message
MethodDescriptorProto
message
FileOptions
message
MessageOptions
message
FieldOptions
message
OneofOptions
message
EnumOptions
message
EnumValueOptions
message
ServiceOptions
message
MethodOptions
message
UninterpretedOption
message
SourceCodeInfo
message
GeneratedCodeInfo
message
Any
message
Timestamp
message
Modules
message
Binary
message
Module
message
Package
message
PackageMetadata
message
ModuleMetadata
message
Clock
message
BlockRef
message
Request
message
Response
message
BlockUndoSignal
message
BlockScopedData
message
SessionInit
message
InitialSnapshotComplete
message
InitialSnapshotData
message
MapModuleOutput
message
StoreModuleOutput
message
OutputDebugInfo
message
ModulesProgress
message
ProcessedBytes
message
Error
message
Job
message
Stage
message
ModuleStats
message
ExternalCallMetric
message
StoreDelta
message
BlockRange
message
DeployRequest
message
EnvironmentVariable
message
DeployResponse
message
UpdateRequest
message
UpdateResponse
message
InfoRequest
message
InfoResponse
message
SinkProgress
message
PackageInfo
message
ListRequest
message
ListResponse
message
DeploymentWithStatus
message
RemoveRequest
message
RemoveResponse
message
PauseRequest
message
PauseResponse
message
StopRequest
message
StopResponse
message
ResumeRequest
message
ResumeResponse
enum
DeploymentStatus