Tungsten v0.1.0 Tungsten.CDP.Database View Source
This domain has no documentation
Link to this section Summary
Link to this section Types
Link to this type
cdp_database_id_type()
View Source
cdp_database_id_type()
View Source
cdp_database_id_type() :: String.t()
cdp_database_id_type() :: String.t()
Unique identifier of Database object.
Link to this type
cdp_database_type()
View Source
cdp_database_type()
View Source
cdp_database_type() :: %{
id: cdp_database_id_type(),
domain: String.t(),
name: String.t(),
version: String.t()
}
cdp_database_type() :: %{
id: cdp_database_id_type(),
domain: String.t(),
name: String.t(),
version: String.t()
}
Database object.
Link to this type
cdp_error_type() View Source
Database error.
Link to this section Functions
Link to this function
disable(session, parameters \\ %{}, options \\ [])
View Source
disable(session, parameters \\ %{}, options \\ [])
View Source
disable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
{:ok, map()} | {:error, term()}
disable(GenServer.server(), map(), Tungsten.Connection.exec_options()) :: {:ok, map()} | {:error, term()}
Disables database tracking, prevents database events from being sent to the client.
Link to this function
enable(session, parameters \\ %{}, options \\ [])
View Source
enable(session, parameters \\ %{}, options \\ [])
View Source
enable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
{:ok, map()} | {:error, term()}
enable(GenServer.server(), map(), Tungsten.Connection.exec_options()) :: {:ok, map()} | {:error, term()}
Enables database tracking, database events will now be delivered to the client.
Link to this function
execute_sql(session, parameters, options \\ [])
View Source
execute_sql(session, parameters, options \\ [])
View Source
execute_sql(
GenServer.server(),
%{database_id: cdp_database_id_type(), query: String.t()},
Tungsten.Connection.exec_options()
) ::
{:ok,
%{
optional(:column_names) => [String.t()],
optional(:values) => [any()],
optional(:sql_error) => cdp_error_type()
}}
| {:error, term()}
execute_sql( GenServer.server(), %{database_id: cdp_database_id_type(), query: String.t()}, Tungsten.Connection.exec_options() ) :: {:ok, %{ optional(:column_names) => [String.t()], optional(:values) => [any()], optional(:sql_error) => cdp_error_type() }} | {:error, term()}
This command has no documentation
Link to this function
get_database_table_names(session, parameters, options \\ [])
View Source
get_database_table_names(session, parameters, options \\ [])
View Source
get_database_table_names(
GenServer.server(),
%{database_id: cdp_database_id_type()},
Tungsten.Connection.exec_options()
) :: {:ok, %{table_names: [String.t()]}} | {:error, term()}
get_database_table_names( GenServer.server(), %{database_id: cdp_database_id_type()}, Tungsten.Connection.exec_options() ) :: {:ok, %{table_names: [String.t()]}} | {:error, term()}
Database.getDatabaseTableNames
This command has no documentation