Skip to content

Latest commit

 

History

History
76 lines (52 loc) · 2.23 KB

doc.org

File metadata and controls

76 lines (52 loc) · 2.23 KB

Reference Documentation

Revision History

RevisionDateAuthorComments
1.02016-03-31Affan SalmanCreated initial structure and added “SERVER OPTIONS”

FDW DDL

SERVER OPTIONS

While defining a foreign Cassandra SERVER, you can provide OPTIONS pertaining to connection configuration.

You can do so by adding comma-separated key-value pairs to the OPTIONS clause of the CREATE SERVER command.

The following simple example shows the key host with the value ‘127.0.0.1’:

CREATE SERVER cass_serv FOREIGN DATA WRAPPER cstar_fdw
       OPTIONS (host '127.0.0.1');

The full list of the supported SERVER parameters is:

Parameter NameRequired?
hostY
portN
protocolN

The details for each of these parameters follow:

host

The address(es) or hostname(s) of the Cassandra server(s).

  • Example values: ‘127.0.0.1’, ‘127.0.0.1,127.0.0.2’, ‘server1.domain.com’
  • Default value: N/A (mandatory parameter)

port

The port number of the Cassandra server(s).

  • Example value: 9042
  • Default value: 9042

protocol

The protocol version to use for connecting with the Cassandra server.

  • Example value: ‘4’
  • Default value: ‘4’ (for cpp-driver version 2.3)