Spanner
Last updated
Last updated
Kubemq gcp-spanner target connector allows services using kubemq server to access google spanner server.
The following are required to run the gcp-spanner target connector:
kubemq cluster
gcp-spanner set up
kubemq-source deployment
spanner target connector configuration properties:
Example:
create query request.
Query metadata setting:
Example:
read table by table_name
Read Table metadata setting:
Example:
insert or update a table
Insert Or Update metadata setting:
Example:
Properties Key
Required
Description
Example
db
yes
gcp spanner db name
"/mydb" should conform to pattern "^projects/(?P+)/instances/(?P+)/databases/(?P+)$"
credentials
yes
gcp credentials files
"<google json credentials"
Metadata Key
Required
Description
Possible values
method
yes
type of method
"query"
query
yes
the query body
"select * from table"
Metadata Key
Required
Description
Possible values
method
yes
type of method
"read"
table_name
yes
table name to read from
""
Metadata Key
Required
Description
Possible values
method
yes
type of method
"insert","update","insert_or_update"