Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/src/main/sphinx/connector/clickhouse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ The connector can query a ClickHouse server. Create a catalog properties file
that specifies the ClickHouse connector by setting the ``connector.name`` to
``clickhouse``.

For example, to access a server as ``myclickhouse``, create the file
``etc/catalog/myclickhouse.properties``. Replace the connection properties as
For example, to access a server as ``clickhouse``, create the file
``etc/catalog/clickhouse.properties``. Replace the connection properties as
appropriate for your setup:

.. code-block:: none
Expand All @@ -34,10 +34,6 @@ appropriate for your setup:
connection-user=exampleuser
connection-password=examplepassword

.. include:: jdbc-common-configurations.fragment

.. include:: non-transactional-insert.fragment

Multiple ClickHouse servers
^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand All @@ -50,6 +46,10 @@ catalog for each server. To add another catalog:
For example, if you name the property file ``sales.properties``, Trino uses the
configured connector to create a catalog named ``sales``.

.. include:: jdbc-common-configurations.fragment

.. include:: non-transactional-insert.fragment

Querying ClickHouse
-------------------

Expand Down
4 changes: 2 additions & 2 deletions docs/src/main/sphinx/connector/druid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Create a catalog properties file that specifies the Druid connector by setting
the ``connector.name`` to ``druid`` and configuring the ``connection-url`` with
the JDBC string to connect to Druid.

For example, to access a database as ``druiddb``, create the file
``etc/catalog/druiddb.properties``. Replace ``BROKER:8082`` with the correct
For example, to access a database as ``druid``, create the file
``etc/catalog/druid.properties``. Replace ``BROKER:8082`` with the correct
host and port of your Druid broker.

.. code-block:: properties
Expand Down
12 changes: 6 additions & 6 deletions docs/src/main/sphinx/connector/memsql.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Configuration
-------------

To configure the SingleStore connector, create a catalog properties file
in ``etc/catalog`` named, for example, ``memsql.properties``, to
mount the SingleStore connector as the ``memsql`` catalog.
in ``etc/catalog`` named, for example, ``singlestore.properties``, to
mount the SingleStore connector as the ``singlestore`` catalog.
Create the file with the following contents, replacing the
connection properties as appropriate for your setup:

Expand All @@ -32,10 +32,6 @@ connection properties as appropriate for your setup:
connection-user=root
connection-password=secret

.. include:: jdbc-common-configurations.fragment

.. include:: non-transactional-insert.fragment

Multiple SingleStore servers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand All @@ -45,6 +41,10 @@ with a different name (making sure it ends in ``.properties``). For
example, if you name the property file ``sales.properties``, Trino
will create a catalog named ``sales`` using the configured connector.

.. include:: jdbc-common-configurations.fragment

.. include:: non-transactional-insert.fragment

Querying SingleStore
--------------------

Expand Down
8 changes: 4 additions & 4 deletions docs/src/main/sphinx/connector/mysql.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ determine the user credentials for the connection, often a service user. You can
use :doc:`secrets </security/secrets>` to avoid actual values in the catalog
properties files.

.. include:: jdbc-common-configurations.fragment

.. include:: non-transactional-insert.fragment

Multiple MySQL servers
^^^^^^^^^^^^^^^^^^^^^^

Expand All @@ -63,6 +59,10 @@ with a different name, making sure it ends in ``.properties``. For
example, if you name the property file ``sales.properties``, Trino
creates a catalog named ``sales`` using the configured connector.

.. include:: jdbc-common-configurations.fragment

.. include:: non-transactional-insert.fragment

.. _mysql-type-mapping:

Type mapping
Expand Down
10 changes: 5 additions & 5 deletions docs/src/main/sphinx/connector/oracle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ To disable connection pooling, update properties to include the following:

oracle.connection-pool.enabled=false

.. include:: jdbc-common-configurations.fragment

.. include:: non-transactional-insert.fragment

Multiple Oracle servers
^^^^^^^^^^^^^^^^^^^^^^^

Expand All @@ -77,7 +73,11 @@ the Oracle connector as a separate catalog.

To add another Oracle catalog, create a new properties file. For example, if
you name the property file ``sales.properties``, Trino creates a catalog named
sales.
``sales``.

.. include:: jdbc-common-configurations.fragment

.. include:: non-transactional-insert.fragment

Querying Oracle
---------------
Expand Down
12 changes: 6 additions & 6 deletions docs/src/main/sphinx/connector/postgresql.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ The connector can query a database on a PostgreSQL server. Create a catalog
properties file that specifies the PostgreSQL connector by setting the
``connector.name`` to ``postgresql``.

For example, to access a database as the ``postgresqlsdb`` catalog, create the
file ``etc/catalog/postgresqlsdb.properties``. Replace the connection properties
For example, to access a database as the ``postgresql`` catalog, create the
file ``etc/catalog/postgresql.properties``. Replace the connection properties
as appropriate for your setup:

.. code-block:: text
Expand All @@ -46,10 +46,6 @@ determine the user credentials for the connection, often a service user. You can
use :doc:`secrets </security/secrets>` to avoid actual values in the catalog
properties files.

.. include:: jdbc-common-configurations.fragment

.. include:: non-transactional-insert.fragment

Multiple PostgreSQL databases or servers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand All @@ -63,6 +59,10 @@ with a different name, making sure it ends in ``.properties``. For example,
if you name the property file ``sales.properties``, Trino creates a
catalog named ``sales`` using the configured connector.

.. include:: jdbc-common-configurations.fragment

.. include:: non-transactional-insert.fragment

.. _postgresql-type-mapping:

Type mapping
Expand Down
10 changes: 5 additions & 5 deletions docs/src/main/sphinx/connector/redshift.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ connection properties as appropriate for your setup:
connection-user=root
connection-password=secret

.. include:: jdbc-common-configurations.fragment

.. include:: non-transactional-insert.fragment

Multiple Redshift databases or clusters
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand All @@ -48,6 +44,10 @@ with a different name, making sure it ends in ``.properties``. For example,
if you name the property file ``sales.properties``, Trino creates a
catalog named ``sales`` using the configured connector.

.. include:: jdbc-common-configurations.fragment

.. include:: non-transactional-insert.fragment

Querying Redshift
-----------------

Expand Down Expand Up @@ -100,4 +100,4 @@ statements, the connector supports the following features:
* :doc:`/sql/drop-schema`
* :doc:`/sql/comment`

.. include:: sql-delete-limitation.fragment
.. include:: sql-delete-limitation.fragment
28 changes: 12 additions & 16 deletions docs/src/main/sphinx/connector/sqlserver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ The connector can query a single database on an SQL server instance. Create a
catalog properties file that specifies the SQL server connector by setting the
``connector.name`` to ``sqlserver``.

For example, to access a database as ``sqlserverdb``, create the file
``etc/catalog/sqlserverdb.properties``. Replace the connection properties as
For example, to access a database as ``sqlserver``, create the file
``etc/catalog/sqlserver.properties``. Replace the connection properties as
appropriate for your setup:

.. code-block:: properties
Expand All @@ -44,26 +44,22 @@ determine the user credentials for the connection, often a service user. You can
use :doc:`secrets </security/secrets>` to avoid actual values in the catalog
properties files.

.. include:: jdbc-common-configurations.fragment

.. include:: non-transactional-insert.fragment

Multiple SQL Server databases or servers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The SQL Server connector can't access more than one database using a single
catalog.
The SQL Server connector can only access a single SQL Server database
within a single catalog. Thus, if you have multiple SQL Server databases,
or want to connect to multiple SQL Server instances, you must configure
multiple instances of the SQL Server connector.

If you have multiple databases, or want to access multiple instances
of SQL Server, you need to configure one catalog for each instance.
To add another catalog, simply add another properties file to ``etc/catalog``
with a different name, making sure it ends in ``.properties``. For example,
if you name the property file ``sales.properties``, Trino creates a
catalog named ``sales`` using the configured connector.

To add another catalog:

- Add another properties file to ``etc/catalog``
- Save it with a different name that ends in ``.properties``
.. include:: jdbc-common-configurations.fragment

For example, if you name the property file ``sales.properties``, Trino uses the
configured connector to create a catalog named ``sales``.
.. include:: non-transactional-insert.fragment

Querying SQL Server
-------------------
Expand Down