Skip to content

How to configure database name with table name for consumer? #76

@roshani-rathi

Description

@roshani-rathi

Hi,
This is my consumer code:

        conn, err := grpc.Dial("localhost:10001", grpc.WithInsecure())
        if err != nil {
                panic(err)
        }
        defer conn.Close()

        consumer := pgcapture.NewConsumer(context.Background(), conn, pgcapture.ConsumerOption{
                URI:              "postgres_cdc",
                TableRegex:       "assetdevicetest",
                DebounceInterval: time.Second,
        })
        defer consumer.Stop()

But my assetdevicetest table is under config_db_test database. How and where can I configure it here in the consumer code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions