TIBCO Data Virtualization® Adapter Online Help > TDV Couchbase Adapter > Advanced Tab > Connection String Options
 
Connection String Options
The following is the full list of the options you can configure in the connection string for this provider.
 
Allows raw JSON to be used in parameters when QueryPassthrough is enabled.
The port for connecting to the Couchbase Analytics Endpoint. Defaults to 8095 for plaintext.
The type of authentication to use when connecting to Couchbase.
The character or characters used to denote child tables.
Determines how to connect to the Couchbase server. Must be either Direct or Cloud.
Determines the Couchbase service to connect to. Default is N1QL. Available options are N1QL and Analytics.
The default RAM quota, in megabytes, to use when inserting buckets via the CREATE TABLE syntax.
Use this property if you need to provide credentials for multiple users or buckets. This file takes priority over other forms of authentication.
The dataverse to connect to when using the Analytics service.
The character or characters used to denote Analytics dataverses.
Determines what DNS server to use when retrieving Couchbase Cloud information.
Specifies whether document TTL information should be exposed.
A password used to authenticate to a proxy-based firewall.
The TCP port for a proxy-based firewall.
The name or IP address of a proxy-based firewall.
The protocol used by a proxy-based firewall.
The user name to use to authenticate with a proxy-based firewall.
By default, nested arrays are returned as strings of JSON. The FlattenArrays property can be used to flatten the elements of nested arrays into columns of their own. Set FlattenArrays to the number of elements you want to return from nested arrays.
Set FlattenObjects to true to flatten object properties into columns of their own. Otherwise, objects nested in arrays are returned as strings of JSON.
The character or characters used to denote flavors.
Whether the provider allows queries to use columns that it has not discovered.
Indicates the user preference as to when schemas should be generated and saved.
Whether the provider exposes aggregate columns that are also available as child tables. Ignored if TableSupport is not set to Full.
The maximum number of values for every field to scan before determining its data type.
The maximum number of documents to scan for the columns available in the bucket.
Specifies the similarity degree where different schemas will be considered to be the same flavor.
A path to the directory that contains the schema files defining tables, views, and stored procedures.
Core modules to be included in the log file.
Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time.
The port for connecting to the Couchbase N1QL Endpoint. Default 8093 for plaintext and 18093 for SSL.
The other parameters necessary to connect to a data source, such as username and password, when applicable.
The number of results to return per page of data retrieved from the Couchbase server.
The password used to authenticate to Couchbase.
The character or characters used to denote hierarchy.
The authentication type to use to authenticate to the ProxyServer proxy.
This indicates whether to use the system proxy settings or not. Set ProxyAutoDetect to FALSE to use custom proxy settings. This takes precedence over other proxy settings.
A semicolon separated list of hosts or IPs that will be exempt from connecting through the ProxyServer .
A password to be used to authenticate to the ProxyServer proxy.
The TCP port the ProxyServer proxy is running on.
The hostname or IP address of a proxy to route HTTP traffic through.
The SSL type to use when connecting to the ProxyServer proxy.
A user name to be used to authenticate to the ProxyServer proxy.
This sets the server-side timeout for the query, which governs how long Couchbase will execute the query before returning a timeout error.
You can use this property to enforce read-only access to Couchbase from the provider.
The maximum number of documents to scan for the columns available in the bucket.
The address of the Couchbase server to which you are connecting.
The TLS/SSL client certificate store for SSL Client Authentication (2-way SSL).
The password for the TLS/SSL client certificate.
The subject of the TLS/SSL client certificate.
The type of key store containing the TLS/SSL client certificate.
The certificate to be accepted from the server when connecting using TLS/SSL.
Adjusts how precisely to translate filters on SQL input queries into Couchbase queries. This can be set to a comma-separated list of values, where each value can be one of: date, number, boolean, or string.
How much effort the provider will put into discovering tables on the Couchbase server.
The value in seconds until the timeout error is thrown, canceling the operation.
Comma separated list of options for how the provider will scan the data to determine the fields and datatypes for the bucket.
The user who is authenticating to Couchbase.
This property is used to determine the port for connecting to the Couchbase N1QL Endpoint. If false, the default, default ports will be assumed, 8093 for plaintext and 18093 for SSL, based on the value specified in UseSSL.
Allows the provider to validate that string parameters are valid JSON before sending the query to Couchbase.
The port for connecting to the Couchbase Web Console. Default 8091 for plaintext and 18091 for SSL.
Allow JSON Parameters
Allows raw JSON to be used in parameters when QueryPassthrough is enabled.
Data Type
bool
Default Value
false
Remarks
This option affects how string parameters are handled when using direct N1QL and SQL++ queries through QueryPassthrough. For example, consider this query:
 
INSERT INTO `bucket` (KEY, VALUE) VALUES ("1", @x)
By default, this option is disabled and string parameters are quoted and escaped into JSON strings. That means that any value can be safely used as a string parameter, but it also means that parameters cannot be used as raw JSON documents:
/*
* If @x is set to: test value " contains quote
*
* Result is a valid query
*/
INSERT INTO `bucket` (KEY, VALUE) VALUES ("1", "test value \" contains quote")
 
/*
* If @x is set to: {"a": ["valid", "JSON", "value"]}
*
* Result contains string instead of JSON document
*/
INSERT INTO `bucket` (KEY, VALUE) VALUES ("1", "{\"a\": [\"valid\", \"JSON\", \"value\"]})
When this option is enabled, string parameters are assumed to be valid JSON. This means that raw JSON documents can be used as parameters, but it also means that all simple strings must be escaped:
/*
* If @x is set to: test value " contains quote
*
* Result is an invalid query
*/
INSERT INTO `bucket` (KEY, VALUE) VALUES ("1", test value " contains quote)
 
/*
* If @x is set to: {"a": ["valid", "JSON", "value"]}
*
* Result is a JSON document
*/
INSERT INTO `bucket` (KEY, VALUE) VALUES ("1", {"a": ["valid", "JSON", "value"]})
Please refer to ValidateJSONParameters for more details on how parameters are validated when this option is enabled.
Analytics Port
The port for connecting to the Couchbase Analytics Endpoint. Defaults to 8095 for plaintext.
Data Type
string
Default Value
""
Remarks
The port for connecting to the Couchbase Analytics Endpoint. If empty, the default ports will be assumed, 8093 for plaintext
Auth Scheme
The type of authentication to use when connecting to Couchbase.
Data Type
string
Default Value
"Auto"
Remarks
Basic: Uses BASIC authentication with User and Password.
CredentialsFile: Uses a credentials file. This will require that CredentialsFile property be set.
SSLCertificate: Uses SSL client certificate authentication. Requires that UseSSL be enabled and that SSLClientCert and SSLClientCertType be set.
Auto: Uses SSL if the required properties are provided. Otherwise the adapter uses CredentialsFile if CredentialsFile is set, or Basic otherwise.
Note that only Basic authentication is supported when using the Cloud ConnectionMode.
Child Separator
The character or characters used to denote child tables.
Data Type
string
Default Value
"_"
Remarks
When creating a child table for an array underneath a bucket, the adapter will generate the name of the child table by concatenating the name of the base table, along with this separator and each path element.
For example, if this document were in the bucket "customers", then the child table for the addresses field would be called "customers_addresses".
{
"addresses": [
{"street": "123 Main St"},
{"street": "424 Pleasant Ct"},
{"street": "719 Blue Way"}
]
}
Connection Mode
Determines how to connect to the Couchbase server. Must be either Direct or Cloud.
Data Type
string
Default Value
"Direct"
Remarks
By default the adapter connects to Couchbase directly using the address given in the Server option. The Server must be running the appropriate CouchbaseService to accept the connection. This will work in most on-premise or basic cloud deployments.
This should be set to Cloud when connecting to Couchbase Cloud or a custom deployment that uses service records. These records will allow the adapter to determine the exact Couchbase servers that provide the appropriate CouchbaseService. You must also set the DNSServer property so that the adapter is able to fetch these service records.
Note that enabling Cloud mode will override these connection properties with the values discovered by contacting the cluster:
Server
N1QLPort
AnalyticsPort
Couchbase Service
Determines the Couchbase service to connect to. Default is N1QL. Available options are N1QL and Analytics.
Data Type
string
Default Value
"N1QL"
Remarks
Determines the Couchbase service to connect to. Default is N1QL. Available options are N1QL and Analytics
Create Table Ram Quota
The default RAM quota, in megabytes, to use when inserting buckets via the CREATE TABLE syntax.
Data Type
string
Default Value
"250"
Remarks
The default RAM quota, in megabytes, to use when inserting buckets via the CREATE TABLE syntax.
Credentials File
A file containing a list of credentials to access Couchbase. This takes priority over other forms of Authentication.
Data Type
string
Default Value
""
Remarks
A file containing a list of credentials to access Couchbase. This takes priority over other forms of Authentication.
Dataverse
The dataverse to connect to when using the Analytics service.
Data Type
string
Default Value
"Default"
Remarks
If no value is provided, the Default dataverse is used.
Dataverse Separator
The character or characters used to denote Analytics dataverses.
Data Type
string
Default Value
"."
Remarks
When using the Analytics serivce, the adapter will scan all datasets from all available dataverses. To avoid potential name conflicts, it will include the dataverse name and the dataset name in the generated table name.
By default this is set to ".", so that if there is a dataset called "users" on the "Default" dataverse, then the table generated will be "Default.users".
DNS Server
Determines what DNS server to use when retrieving Couchbase Cloud information.
Data Type
string
Default Value
""
Remarks
In most cases any public DNS server can be provided here such as the ones provided by OpenDNS, Cloudflare or Google.
If these are not accessible then you will need to use the DNS server configured by your network administrator.
Expose TTL
Specifies whether document TTL information should be exposed.
Data Type
bool
Default Value
false
Remarks
By default the adapter does not expose TTL values or consider document TTLs when performing DML operations. Enabling this option exposes TTL values in two ways:
All tables get a new column called Document.Expiration which contains the TTL value for each document. This column is an integer and returns whatever TTL value is stored in Couchbase directly. This column is read-write on bucket tables and read-only on child tables.
INSERT and UPDATE will use this field to set TTL values, or to preserve them (for update) when none is provided. Setting the field to either 0 or NULL will remove the TTL from any affected documents.
Note that enabling this features requires that your server be version 6.5.1 or later and that your CouchbaseService is set to N1QL. If either of these is not the case the adapter will not connect.
Firewall Password
A password used to authenticate to a proxy-based firewall.
Data Type
string
Default Value
""
Remarks
This property is passed to the proxy specified by FirewallServer and FirewallPort, following the authentication method specified by FirewallType.
Firewall Port
The TCP port for a proxy-based firewall.
Data Type
string
Default Value
""
Remarks
This specifies the TCP port for a proxy allowing traversal of a firewall. Use FirewallServer to specify the name or IP address. Specify the protocol with FirewallType.
Firewall Server
The name or IP address of a proxy-based firewall.
Data Type
string
Default Value
""
Remarks
This property specifies the IP address, DNS name, or host name of a proxy allowing traversal of a firewall. The protocol is specified by FirewallType: Use FirewallServer with this property to connect through SOCKS or do tunneling. Use ProxyServer to connect to an HTTP proxy.
Note that the adapter uses the system proxy by default. To use a different proxy, set ProxyAutoDetect to false.
Firewall Type
The protocol used by a proxy-based firewall.
Data Type
string
Default Value
"NONE"
Remarks
This property specifies the protocol that the adapter will use to tunnel traffic through the FirewallServer proxy. Note that by default the adapter connects to the system proxy; to disable this behavior and connect to one of the following proxy types, set ProxyAutoDetect to false.
 
Type
Default Port
Description
TUNNEL
80
When this is set, the adapter opens a connection to Couchbase and traffic flows back and forth through the proxy.
SOCKS4
1080
When this is set, the adapter sends data through the SOCKS 4 proxy specified by FirewallServer and FirewallPort and passes the FirewallUser value to the proxy, which determines if the connection request should be granted.
SOCKS5
1080
When this is set, the adapter sends data through the SOCKS 5 proxy specified by FirewallServer and FirewallPort. If your proxy requires authentication, set FirewallUser and FirewallPassword to credentials the proxy recognizes.
To connect to HTTP proxies, use ProxyServer and ProxyPort. To authenticate to HTTP proxies, use ProxyAuthScheme, ProxyUser, and ProxyPassword.
Firewall User
The user name to use to authenticate with a proxy-based firewall.
Data Type
string
Default Value
""
Remarks
The FirewallUser and FirewallPassword properties are used to authenticate against the proxy specified in FirewallServer and FirewallPort, following the authentication method specified in FirewallType.
Flatten Arrays
By default, nested arrays are returned as strings of JSON. The FlattenArrays property can be used to flatten the elements of nested arrays into columns of their own. Set FlattenArrays to the number of elements you want to return from nested arrays.
Data Type
string
Default Value
"0"
Remarks
By default, nested arrays are returned as strings of JSON. The FlattenArrays property can be used to flatten the elements of nested arrays into columns of their own. This is only recommended for arrays that are expected to be short.
Set FlattenArrays to the number of elements you want to return from nested arrays. The specified elements are returned as columns. The zero-based index is concatenated to the column name. Other elements are ignored.
For example, you can return an arbitrary number of elements from an array of strings:
["FLOW-MATIC","LISP","COBOL"]
When FlattenArrays is set to 1, the preceding array is flattened into the following table:
 
Column Name
Column Value
languages_0
FLOW-MATIC
Flatten Objects
Set FlattenObjects to true to flatten object properties into columns of their own. Otherwise, objects nested in arrays are returned as strings of JSON.
Data Type
bool
Default Value
true
Remarks
Set FlattenObjects to true to flatten object properties into columns of their own. Otherwise, objects nested in arrays are returned as strings of JSON. The property name is concatenated onto the object name with an underscore to generate the column name.
For example, you can flatten the nested objects below at connection time:
address : {
"street" : "123 Main St.",
"city" : "Nowhere",
"state" : "NY",
"zip" : "12345"
}
When FlattenObjects is set to true, the preceding object is flattened into the following table:
 
Column Name
Column Value
address_street
123 Main St.
address_city
Nowhere
address_state
NY
address_zip
12345
Flavor Separator
The character or characters used to denote flavors.
Data Type
string
Default Value
"."
Remarks
When the adapter detects a flavored table, using either a DocType or Infer TypeDetectionScheme, it names flavored tables by concatenating the underlying bucket name, this seprator, and the value of the bucket's primary flavor.
For example, if the adapter detects the flavor "docType = 'beer'" on the "beer-sample" bucket, then it will generate the table "beer-sample.beer" which contains only documents in "beer-sample" which have the "beer" doctype.
Flexible Schemas
Whether the provider allows queries to use columns that it has not discovered.
Data Type
bool
Default Value
false
Remarks
By default adapter will only allow queries to use columns that it has found during the metadata discovery process (see TypeDetectionScheme for details). This means that the adapter has the full information for each column it presents, but it also means that fields set on only a few documents may not be exposed. Disabling this option means that the adapter will allow you to write a query with any columns you want. If you use columns in a query that have not been discovered the adapter will assume that they are simple strings.
For example, the adapter uses column type information to automatically convert dates for comparision since Couchbase cannot natively compare dates directly. If the adapter detects that datecol is a date field, it can apply the STR_TO_MILLIS conversion automatically:
/* SQL */
WHERE datecol < '2020-06-12';
 
/* N1QL */
WHERE STR_TO_MILLIS(datecol) < STR_TO_MILLIS('2020-06-12');
When using undiscovered columns the adapter cannot make this type of conversion for you. You must apply any needed conversions manually to ensure that operations behave the way you want them to.
Generate Schema Files
Indicates the user preference as to when schemas should be generated and saved.
Data Type
string
Default Value
"Never"
Remarks
GenerateSchemaFiles enables you to save the table definitions identified by Automatic Schema Discovery. This property outputs schemas to .rsd files in the path specified by Location.
Available settings are the following:
Never: A schema file will never be generated.
OnUse: A schema file will be generated the first time a table is referenced, provided the schema file for the table does not already exist.
OnStart: A schema file will be generated at connection time for any tables that do not currently have a schema file.
Note that if you want to regenerate a file, you will first need to delete it.
Generate Schemas with SQL
When you set GenerateSchemaFiles to OnUse, the adapter generates schemas as you execute SELECT queries. Schemas are generated for each table referenced in the query.
Generate Schemas on Connection
Another way to use this property is to obtain schemas for every table in your database when you connect. To do so, set GenerateSchemaFiles to OnStart and connect.
Editing Schemas
Schema files have a simple format that makes them easy to modify. See Custom Schema Definitions for more information.
Ignore Child Aggregates
Whether the provider exposes aggregate columns that are also available as child tables. Ignored if TableSupport is not set to Full.
Data Type
bool
Default Value
false
Remarks
The adapter will expose array fields within a bucket as a separate child table, such as in the Games_scores example described in Automatic Schema Discovery. By default the adapter will also expose these array fields as JSON aggregates on the base table. For example, either of these queries would return information on game scores:
/* Return each score as an individual row */
SELECT value FROM Games_scores;
 
/* Return all scores for each Game as a JSON string */
SELECT scores FROM Games;
Since these aggregates are exposed on the base table, they will be generated even when the information they contain is redundant. For example, when performing this join the scores aggregate on Games is populated as well as the value column on Games_scores. Internally this causes two copies of the scores data to be transferred from Couchbase.
/* Retrieves score data twice, once for Games.scores and once for Games_scores.value */
SELECT * FROM Games INNER JOIN Games_scores ON Games.[Document.Id] = Games_scores.[Document.Id]
This option can be used to prevent the aggregate field from being exposed when the same information is also available from a child table. In the games example, setting this option to true means that the Games table would only expose a primary key column. The only way to retrieve information about scores would be the child table, so score data would only be read once from Couchbase.
/* Only exposes Document.Id, not scores */
SELECT * FROM Games;
 
/* Only retrieves score data once for Games_scores.value */
SELECT * FROM Games INNER JOIN Games_scores ON Games.[Document.Id] = Games_scores.[Document.Id]
Note that this option overrides FlattenArrays, since all data from flattened arrays is also avaialable as child tables. If this option is set then no array flattening is performed, even if FlattenArrays is set to a value over 0.
Infer Num Sample Values
The maximum number of values for every field to scan before determining its data type.
Data Type
string
Default Value
"10"
Remarks
The maximum number of values for every field to scan before determining its data type.
Infer Sample Size
The maximum number of documents to scan for the columns available in the bucket.
Data Type
string
Default Value
"100"
Remarks
Since Couchbase is schemaless, this property controls the maximum number of values of each field that will be scanned to determine datatype of a column.
Setting a high value may decrease performance. Setting a low value may prevent the data type from being determined properly, especially when there is null data.
Infer Similarity Metric
Specifies the similarity degree where different schemas will be considered to be the same flavor.
Data Type
string
Default Value
"0.7"
Remarks
Specifies the similarity degree where different schemas will be considered to be the same flavor.
Location
A path to the directory that contains the schema files defining tables, views, and stored procedures.
Data Type
string
Default Value
""
Remarks
The path to a directory which contains the schema files for the adapter (.rsd files for tables and views, .rsb files for stored procedures). The Location property is only needed if you would like to customize definitions (e.g., change a column name, ignore a column, etc.) or extend the data model with new tables, views, or stored procedures.
The schema files are deployed alongside the adapter assemblies. You must also ensure that Location points to the folder that contains the schema files. The folder location can be a relative path from the location of the executable.
Log Modules
Core modules to be included in the log file.
Data Type
string
Default Value
""
Remarks
Only the modules specified (separated by ';') will be included in the log file. By default all modules are included.
Max Rows
Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time.
Data Type
string
Default Value
"-1"
Remarks
Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time.
N1QL Port
The port for connecting to the Couchbase N1QL Endpoint. Default 8093 for plaintext and 18093 for SSL.
Data Type
string
Default Value
""
Remarks
The port for connecting to the Couchbase N1QL Endpoint. If empty, default ports will be assumed, 8093 for plaintext and 18093 for SSL, based on the value specified in UseSSL.
Other
The other parameters necessary to connect to a data source, such as username and password, when applicable.
Data Type
string
Default Value
""
Remarks
The Other property is a semicolon-separated list of name-value pairs used in connection parameters specific to a data source.
Integration and Formatting
DefaultColumnSize
Sets the default length of string fields when the data source does not provide column length in the metadata. The default value is 2000.
ConvertDateTimeToGMT
Whether to convert date-time values to GMT, instead of the local time of the machine.
RecordToFile=filename
Records the underlying socket data transfer to the specified file.
Page Size
The number of results to return per page of data retrieved from the Couchbaseserver.
Data Type
string
Default Value
"1000"
Remarks
The number of results to return per page of data retrieved from the Couchbase server.
Password
The password used to authenticate to Couchbase.
Data Type
string
Default Value
""
Remarks
The password used to authenticate to Couchbase.
Periods Separator
The character or characters used to denote hierarchy.
Data Type
string
Default Value
"."
Remarks
In order to flatten out hierarchical structures, the adapter needs some specifier that states the path to a column through the hierarchy. If this value is "." and a column comes back with the name address.city, this indicates that there is a mapped attribute with a child called city. If your data has columns that already use a single period within the attribute name, set the PeriodsSeparator to a different character or characters.
Proxy Auth Scheme
The authentication type to use to authenticate to the ProxyServer proxy.
Data Type
string
Default Value
"BASIC"
Remarks
This value specifies the authentication type to use to authenticate to the HTTP proxy specified by ProxyServer and ProxyPort.
Note that the adapter will use the system proxy settings by default, without further configuration needed; if you want to connect to another proxy, you will need to set ProxyAutoDetect to false, in addition to ProxyServer and ProxyPort. To authenticate, set ProxyAuthScheme and set ProxyUser and ProxyPassword, if needed.
The authentication type can be one of the following:
BASIC: The adapter performs HTTP BASIC authentication.
DIGEST: The adapter performs HTTP DIGEST authentication.
NEGOTIATE: The adapter retrieves an NTLM or Kerberos token based on the applicable protocol for authentication.
PROPRIETARY: The adapter does not generate an NTLM or Kerberos token. You must supply this token in the Authorization header of the HTTP request.
If you need to use another authentication type, such as SOCKS 5 authentication, see Firewall Type.
Proxy Auto Detect
This indicates whether to use the system proxy settings or not. Set ProxyAutoDetect to FALSE to use custom proxy settings. This takes precedence over other proxy settings.
Data Type
bool
Default Value
true
Remarks
By default, the adapter uses the system HTTP proxy. Set this to false if you want to connect to another proxy.
To connect to an HTTP proxy, see Proxy Server.
For other proxies, such as SOCKS or tunneling, see Firewall Type.
Proxy Exceptions
A semicolon separated list of hosts or IPs that will be exempt from connecting through the ProxyServer .
Data Type
string
Default Value
""
Remarks
The ProxyServer will be used for all addresses, except for addresses defined in this property. Use semicolons to separate entries.
Note that the adapter will use the system proxy settings by default, without further configuration needed; if you want to explicitly configure proxy exceptions for this connection, you will need to set ProxyAutoDetect to false, and configure ProxyServer and ProxyPort. To authenticate, set ProxyAuthScheme and set ProxyUser and ProxyPassword, if needed.
Proxy Password
A password to be used to authenticate to the ProxyServer proxy.
Data Type
string
Default Value
""
Remarks
This property is used to authenticate to an HTTP proxy server that supports NTLM (Windows), Kerberos, or HTTP authentication. To specify the HTTP proxy, you can set ProxyServer and ProxyPort. To specify the authentication type, set ProxyAuthScheme.
If you are using HTTP authentication, additionally set ProxyUser and ProxyPassword to HTTP proxy.
If you are using NTLM authentication, set ProxyUser and ProxyPassword to your Windows password. You may also need these to complete Kerberos authentication.
For SOCKS 5 authentication or tunneling, see Firewall Type.
By default, the adapter uses the system proxy. If you want to connect to another proxy, set ProxyAutoDetect to false.
Proxy Port
The TCP port the ProxyServer proxy is running on.
Data Type
string
Default Value
"80"
Remarks
The port the HTTP proxy is running on that you want to redirect HTTP traffic through. Specify the HTTP proxy in ProxyServer. For other proxy types, see Firewall Type.
Proxy Server
The hostname or IP address of a proxy to route HTTP traffic through.
Data Type
string
Default Value
""
Remarks
The hostname or IP address of a proxy to route HTTP traffic through. The adapter can use the HTTP, Windows (NTLM), or Kerberos authentication types to authenticate to an HTTP proxy.
If you need to connect through a SOCKS proxy or tunnel the connection, see Firewall Type.
By default, the adapter uses the system proxy. If you need to use another proxy, set ProxyAutoDetect to false.
Proxy SSL Type
The SSL type to use when connecting to the ProxyServer proxy.
Data Type
string
Default Value
"AUTO"
Remarks
This property determines when to use SSL for the connection to an HTTP proxy specified by ProxyServer. This value can be AUTO, ALWAYS, NEVER, or TUNNEL. The applicable values are the following:
 
AUTO
Default setting. If the URL is an HTTPS URL, the adapter will use the TUNNEL option. If the URL is an HTTP URL, the component will use the NEVER option.
ALWAYS
The connection is always SSL enabled.
NEVER
The connection is not SSL enabled.
TUNNEL
The connection is through a tunneling proxy: The proxy server opens a connection to the remote host and traffic flows back and forth through the proxy.
Proxy User
A user name to be used to authenticate to the ProxyServer proxy.
Data Type
string
Default Value
""
Remarks
The ProxyUser and ProxyPassword options are used to connect and authenticate against the HTTP proxy specified in ProxyServer.
You can select one of the available authentication types in ProxyAuthScheme. If you are using HTTP authentication, set this to the username of a user recognized by the HTTP proxy. If you are using Windows or Kerberos authentication, set this property to a username in one of the following formats:
user@domain
domain\user
 
Query Execution Timeout
This sets the server-side timeout for the query, which governs how long Couchbase will execute the query before returning a timeout error.
Data Type
string
Default Value
"-1"
Remarks
Th default is -1, which disables the timeout. When enabling the timeout, the value must include both an amount and a unit, which can be one of: "ns" (nanoseconds), "us" (microseconds), "ms" (milliseconds), "s" (seconds), "m" (minutes) or "h" (hours). For example, "5m" and "300s" both set timeouts of 5 minutes.
There is a server-side timeout as well called the "index scan timeout", which will override this one if it is lower. By default the index scan timeout is 2 minutes, but it can be changed by setting the "indexer.settings.scan_timeout" property on your Couchbase server.
Readonly
You can use this property to enforce read-only access to Couchbase from the provider.
Data Type
bool
Default Value
false
Remarks
If this property is set to true, the adapter will allow only SELECT queries. INSERT, UPDATE, DELETE, and stored procedure queries will cause an error to be thrown.
Row Scan Depth
The maximum number of documents to scan for the columns available in the bucket.
Data Type
string
Default Value
"100"
Remarks
Since Couchbase is schemaless, this property controls the maximum number of documents that will be scanned to determine columns for the bucket.
Setting a high value may decrease performance. Setting a low value may prevent the data type from being determined properly, especially when there is null data.
Server
The address of the Couchbase server to which you are connecting.
Data Type
string
Default Value
""
Remarks
The address of the Couchbase server to which you are connecting.
SSL Client Cert
The TLS/SSL client certificate store for SSL Client Authentication (2-way SSL).
Data Type
string
Default Value
""
Remarks
The name of the certificate store for the client certificate.
The SSLClientCertType field specifies the type of the certificate store specified by SSLClientCert. If the store is password protected, specify the password in SSLClientCertPassword.
SSLClientCert is used in conjunction with the SSLClientCertSubject field in order to specify client certificates. If SSLClientCert has a value, and SSLClientCertSubject is set, a search for a certificate is initiated. See SSLClientCertSubject for more information.
Designations of certificate stores are platform-dependent.
The following are designations of the most common User and Machine certificate stores in Windows:
 
MY
A certificate store holding personal certificates with their associated private keys.
CA
Certifying authority certificates.
ROOT
Root certificates.
SPC
Software publisher certificates.
In Java, the certificate store normally is a file containing certificates and optional private keys.
When the certificate store type is PFXFile, this property must be set to the name of the file. When the type is PFXBlob, the property must be set to the binary contents of a PFX file (for example, PKCS12 certificate store).
SSL Client Cert Password
The password for the TLS/SSL client certificate.
Data Type
string
Default Value
""
Remarks
If the certificate store is of a type that requires a password, this property is used to specify that password to open the certificate store.
SSL Client Cert Subject
The subject of the TLS/SSL client certificate.
Data Type
string
Default Value
"*"
Remarks
When loading a certificate the subject is used to locate the certificate in the store.
If an exact match is not found, the store is searched for subjects containing the value of the property. If a match is still not found, the property is set to an empty string, and no certificate is selected.
The special value "*" picks the first certificate in the certificate store.
The certificate subject is a comma separated list of distinguished name fields and values. For example, "CN=www.server.com, OU=test, C=US, E=support@company.com". The common fields and their meanings are shown below.
 
Field
Meaning
CN
Common Name. This is commonly a host name like www.server.com.
O
Organization
OU
Organizational Unit
L
Locality
S
State
C
Country
E
Email Address
If a field value contains a comma, it must be quoted.
SSL Client Cert Type
The type of key store containing the TLS/SSL client certificate.
Data Type
string
Default Value
""
Remarks
This property can take one of the following values:
 
USER - default
For Windows, this specifies that the certificate store is a certificate store owned by the current user. Note that this store type is not available in Java.
MACHINE
For Windows, this specifies that the certificate store is a machine store. Note that this store type is not available in Java.
PFXFILE
The certificate store is the name of a PFX (PKCS12) file containing certificates.
PFXBLOB
The certificate store is a string (base-64-encoded) representing a certificate store in PFX (PKCS12) format.
JKSFILE
The certificate store is the name of a Java key store (JKS) file containing certificates. Note that this store type is only available in Java.
JKSBLOB
The certificate store is a string (base-64-encoded) representing a certificate store in JKS format. Note that this store type is only available in Java.
PEMKEY_FILE
The certificate store is the name of a PEM-encoded file that contains a private key and an optional certificate.
PEMKEY_BLOB
The certificate store is a string (base64-encoded) that contains a private key and an optional certificate.
PUBLIC_KEY_FILE
The certificate store is the name of a file that contains a PEM- or DER-encoded public key certificate.
PUBLIC_KEY_BLOB
The certificate store is a string (base-64-encoded) that contains a PEM- or DER-encoded public key certificate.
SSHPUBLIC_KEY_FILE
The certificate store is the name of a file that contains an SSH-style public key.
SSHPUBLIC_KEY_BLOB
The certificate store is a string (base-64-encoded) that contains an SSH-style public key.
P7BFILE
The certificate store is the name of a PKCS7 file containing certificates.
PPKFILE
The certificate store is the name of a file that contains a PuTTY Private Key (PPK).
XMLFILE
The certificate store is the name of a file that contains a certificate in XML format.
XMLBLOB
The certificate store is a string that contains a certificate in XML format.
SSL Server Cert
The certificate to be accepted from the server when connecting using TLS/SSL.
Data Type
string
Default Value
""
Remarks
If using a TLS/SSL connection, this property can be used to specify the TLS/SSL certificate to be accepted from the server. Any other certificate that is not trusted by the machine will be rejected.
This property can take the forms:
 
Description
Example
A full PEM Certificate (example shortened for brevity)
-----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE-----
A path to a local file containing the certificate
C:\cert.cer
The public key (example shortened for brevity)
-----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY-----
The MD5 Thumbprint (hex values can also be either space or colon separated)
ecadbdda5a1529c58a1e9e09828d70e4
The SHA1 Thumbprint (hex values can also be either space or colon separated)
34a929226ae0819f2ec14b4a3d904f801cbb150d
 
If not specified, any certificate trusted by the machine will be accepted. Use '*' to signify to accept all certificates (not recommended for security concerns).
Strict Comparison
Adjusts how precisely to translate filters on SQL input queries into Couchbase queries. This can be set to a comma-separated list of values, where each value can be one of: date, number, boolean, or string.
Data Type
string
Default Value
""
Remarks
This option is empty by default, which means that WHERE clauses sent to Couchbase will include extra functions that convert values so that more comparisons work.
For example, leaving the 'string' setting out of the list causes arrays to be converted, so that they can be compared with strings:
SELECT * FROM Bucket WHERE MyArrayColumn = '[1,2,3]'
If set to a value, queries including the relevant types of comparisons will be translated literally. This makes better use of Couchbase's indexes, but means that the types of comparisons must be in a format Couchbase can compare directly.
For example, if 'date' is provided as one of the options, then dates must match the format they are stored as in Couchbase since they will not be converted automatically:
SELECT * FROM Bucket WHERE MyDateColumn = '2018-10-31T10:00:00';
Table Support
How much effort the provider will put into discovering tables on the Couchbase server.
Data Type
string
Default Value
"Full"
Remarks
The available options are:
 
Full
The adapter will discover the availble buckets, and look inside of each of those buckets for child tables. This provides the most flexible way to access nested data, but requires that each bucket on your server have primary indexes.
Basic
The adapter will discover the available buckets, but will not look inside of them for child tables. This is recommended for cases where you either want to reduce the time that schema detection takes, or if your buckets do not have primary indexes.
None
The adapter will only use the schema files found in the Location directory, and will not discover buckets on the server. This option should only be used after you have already created schema files. Using this option without schema files will result in no tables being available.
Timeout
The value in seconds until the timeout error is thrown, canceling the operation.
Data Type
string
Default Value
"60"
Remarks
If the Timeout property is set to 0, operations do not time out: They run until they complete successfully or encounter an error condition.
If Timeout expires and the operation is not yet complete, the adapter throws an exception.
Type Detection Scheme
Determines how the provider builds tables and columns from the buckets found in Couchbase.
Data Type
string
Default Value
"DocType"
Remarks
The available options are:
DocType
This discovers tables by checking at each bucket and looking for different values of the "docType" field in the documents. For example, if the bucket beer-sample contains documents with "docType" = 'brewery' and "docType" = 'beer', this will generate three tables: beer-sample (containing all documents), beer-sample.brewery (containing just breweries) and beer-sample.beer (containing just beers).
DocType=fieldName
Like DocType, but this scans based off of a column called "fieldName" rather than "docType".
Infer
This uses the N1QL INFER statement to determine what tables and columns exist. This does more flexible flavor detection than DocType, but is only available for Couchbase Enterprise.
RowScan
This reads a sample of documents from a bucket, and heuristically determines the data type. RowScanDepth determines how many documents are scanned. It does not do any flavor detection.
None
This is like RowScan, but will always return columns that have string types instead of the detected type.
User
The user who is authenticating to Couchbase.
Data Type
string
Default Value
""
Remarks
The user who is authenticating to Couchbase.
Use SSL
This property is used to determine the port for connecting to the Couchbase N1QL Endpoint. If false, the default, default ports will be assumed, 8093 for plaintext and 18093 for SSL, based on the value specified in UseSSL.
Data Type
bool
Default Value
false
Remarks
This property is used to determine the port for connecting to the Couchbase N1QL Endpoint. If false, the default, default ports will be assumed, 8093 for plaintext and 18093 for SSL, based on the value specified in UseSSL.
Validate JSON Parameters
Allows the provider to validate that string parameters are valid JSON before sending the query to Couchbase.
Data Type
bool
Default Value
true
Remarks
When AllowJSONParameters and QueryPassthrough are enabled, the query parameters given to the adapter will be treated as raw JSON documents instead of arbitrary string values. This option controls what happens when invalid JSON is given to the adapter in this mode.
When this option is enabled, the adapter will check that all string parameters can be parsed as valid JSON. If any cannot be, an error will be raised and the query will not be run.
When this option is disabled, no check is performed and all string parameter values are substituted into the query directly. This makes executing prepared statements faster, but less safe since invalid N1QL or SQL++ may be sent to the Couchbase.
Web Console Port
The port for connecting to the Couchbase Web Console. Default 8091 for plaintext and 18091 for SSL.
Data Type
string
Default Value
""
Remarks
The port for connecting to the Couchbase Web Console. If left empty, default ports will be assumed, 8091 for plaintext and 18091, based on the value specified in UseSSL.