chore: rename cassandra_impl to cassandra_connector
This commit is contained in:
parent
5cc28a7b45
commit
b270623c46
|
@ -88,7 +88,7 @@ fields("config") ->
|
||||||
#{desc => ?DESC("local_topic"), default => undefined}
|
#{desc => ?DESC("local_topic"), default => undefined}
|
||||||
)}
|
)}
|
||||||
] ++ emqx_resource_schema:fields("resource_opts") ++
|
] ++ emqx_resource_schema:fields("resource_opts") ++
|
||||||
(emqx_bridge_cassandra_impl:fields(config) --
|
(emqx_bridge_cassandra_connector:fields(config) --
|
||||||
emqx_connector_schema_lib:prepare_statement_fields());
|
emqx_connector_schema_lib:prepare_statement_fields());
|
||||||
fields("post") ->
|
fields("post") ->
|
||||||
fields("post", cassandra);
|
fields("post", cassandra);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
%% Copyright (c) 2023 EMQ Technologies Co., Ltd. All Rights Reserved.
|
%% Copyright (c) 2023 EMQ Technologies Co., Ltd. All Rights Reserved.
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
|
|
||||||
-module(emqx_bridge_cassandra_impl).
|
-module(emqx_bridge_cassandra_connector).
|
||||||
|
|
||||||
-behaviour(emqx_resource).
|
-behaviour(emqx_resource).
|
||||||
|
|
|
@ -590,7 +590,7 @@ t_missing_data(Config) ->
|
||||||
{ok, _},
|
{ok, _},
|
||||||
create_bridge(Config)
|
create_bridge(Config)
|
||||||
),
|
),
|
||||||
%% emqx_bridge_cassandra_impl will send missed data as a `null` atom
|
%% emqx_bridge_cassandra_connector will send missed data as a `null` atom
|
||||||
%% to ecql driver
|
%% to ecql driver
|
||||||
?check_trace(
|
?check_trace(
|
||||||
begin
|
begin
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
%% Copyright (c) 2023 EMQ Technologies Co., Ltd. All Rights Reserved.
|
%% Copyright (c) 2023 EMQ Technologies Co., Ltd. All Rights Reserved.
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
|
|
||||||
-module(emqx_bridge_cassandra_impl_SUITE).
|
-module(emqx_bridge_cassandra_connector_SUITE).
|
||||||
|
|
||||||
-compile(nowarn_export_all).
|
-compile(nowarn_export_all).
|
||||||
-compile(export_all).
|
-compile(export_all).
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
%% Cassandra server defined at `.ci/docker-compose-file/docker-compose-cassandra-tcp.yaml`
|
%% Cassandra server defined at `.ci/docker-compose-file/docker-compose-cassandra-tcp.yaml`
|
||||||
%% You can change it to `127.0.0.1`, if you run this SUITE locally
|
%% You can change it to `127.0.0.1`, if you run this SUITE locally
|
||||||
-define(CASSANDRA_HOST, "cassandra").
|
-define(CASSANDRA_HOST, "cassandra").
|
||||||
-define(CASSANDRA_RESOURCE_MOD, emqx_bridge_cassandra_impl).
|
-define(CASSANDRA_RESOURCE_MOD, emqx_bridge_cassandra_connector).
|
||||||
|
|
||||||
%% This test SUITE requires a running cassandra instance. If you don't want to
|
%% This test SUITE requires a running cassandra instance. If you don't want to
|
||||||
%% bring up the whole CI infrastuctucture with the `scripts/ct/run.sh` script
|
%% bring up the whole CI infrastuctucture with the `scripts/ct/run.sh` script
|
|
@ -75,7 +75,7 @@ resource_type(kafka_consumer) -> emqx_bridge_kafka_impl_consumer;
|
||||||
%% TODO: rename this to `kafka_producer' after alias support is added
|
%% TODO: rename this to `kafka_producer' after alias support is added
|
||||||
%% to hocon; keeping this as just `kafka' for backwards compatibility.
|
%% to hocon; keeping this as just `kafka' for backwards compatibility.
|
||||||
resource_type(kafka) -> emqx_bridge_kafka_impl_producer;
|
resource_type(kafka) -> emqx_bridge_kafka_impl_producer;
|
||||||
resource_type(cassandra) -> emqx_bridge_cassandra_impl;
|
resource_type(cassandra) -> emqx_bridge_cassandra_connector;
|
||||||
resource_type(hstreamdb) -> emqx_ee_connector_hstreamdb;
|
resource_type(hstreamdb) -> emqx_ee_connector_hstreamdb;
|
||||||
resource_type(gcp_pubsub) -> emqx_bridge_gcp_pubsub_connector;
|
resource_type(gcp_pubsub) -> emqx_bridge_gcp_pubsub_connector;
|
||||||
resource_type(mongodb_rs) -> emqx_ee_connector_mongodb;
|
resource_type(mongodb_rs) -> emqx_ee_connector_mongodb;
|
||||||
|
|
2
mix.exs
2
mix.exs
|
@ -155,7 +155,7 @@ defmodule EMQXUmbrella.MixProject do
|
||||||
defp enterprise_umbrella_apps() do
|
defp enterprise_umbrella_apps() do
|
||||||
MapSet.new([
|
MapSet.new([
|
||||||
:emqx_bridge_kafka,
|
:emqx_bridge_kafka,
|
||||||
:emqx_bridge_gcp_pubsub
|
:emqx_bridge_gcp_pubsub,
|
||||||
:emqx_bridge_cassandra,
|
:emqx_bridge_cassandra,
|
||||||
:emqx_bridge_clickhouse,
|
:emqx_bridge_clickhouse,
|
||||||
:emqx_bridge_dynamo,
|
:emqx_bridge_dynamo,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
emqx_bridge_cassandra_impl {
|
emqx_bridge_cassandra_connector {
|
||||||
|
|
||||||
keyspace.desc:
|
keyspace.desc:
|
||||||
"""Keyspace name to connect to."""
|
"""Keyspace name to connect to."""
|
Loading…
Reference in New Issue