sisense.com

Data Connector Reference

A connection is a mandatory part of any dataset, as it enables Sisense to fetch data from the target data source into the application.

Connections can be created either through the Connection Management GUI or via the dedicated set of Connection Management REST API endpoints.

For each connector type, the connection property has a specific structure. In some cases, additional configuration at the Table level is required, such as for CSV and Excel connectors, defined through the Table's configOptions property.For each connector type, there's a different structure for the Dataset's connection property. In some cases, additional configuration at the Table level is also required, such as for CSV and Excel type connectors, defined via the Table's configOptions property.

The basic structure for any connection is:

{
    "provider": "string",
    "schema": "string",
    "parameters": {},
    "globalTableConfigOptions": {}
}

Properties:

NameTypeRequiredDescription
providerstringYesConnector type name (case sensitive!)
schemastringYesSchema to connect to (required value varies by connector type)
parametersobjectYesConnection configuration (varies by connector type)
globalTableConfigOptionsobjectNoSome connectors require additional configuration

For individual connector types see:

CSV

CSV File connectors allow for one or more CSV files from the cluster storage to be imported into a Datamodel.

CSV connections require additional configuration at the Table level via each Table's configOptions property.

Main Properties

NameTypeRequiredValue
providerstringYes"CSV"
schemastringYesPath of first file
fileNamestringYesOriginal file name of first file
parametersobjectYesConnection configuration
globalTableConfigOptionsobjectNoN/A

parameters Properties

NameTypeRequiredExample ValueDescription
ApiVersionnumberYes2Use value 2
filesstring[]YesAn array of file paths for all files
unionAllbooleanNoOptional: set to true to union all files in the dataset as one table

configOptions Properties

NameTypeRequiredExample ValueDescription
delimiterstringYes","Delimiter for CSV columns
hasHeaderbooleanYestrueIs CSV's 1st row a header row
excludeIfBeginsstringNo""
excludeIfContainsstringNo""
stringQuotestringYes"\""Character denoting a string value
ignoreFirstRowsstringNo""
culturestringYes"en-US"CSV file culture code

Example

"connection": {
  "provider": "CSV",
  "schema": "/opt/sisense/storage/datasets/storage/a8/a813808a-1df3-4193-a530-2eb9271005d1.csv",
  "parameters": {
    "ApiVersion": 2,
    "files": [
      "/opt/sisense/storage/datasets/storage/a8/a813808a-1df3-4193-a530-2eb9271005d1.csv",
      "/opt/sisense/storage/datasets/storage/77/77ad3229-f84e-4a78-92d8-323f7a5e1802.csv"
    ],
    "unionAll": true
  },
  "uiParams": {},
  "globalTableConfigOptions": {},
  "fileName": "Mostcommonprismfunctionsused.csv"
}
"configOptions": {
  "delimiter": ",",
  "hasHeader": true,
  "excludeIfBegins": "",
  "excludeIfContains": "",
  "stringQuote": "\"",
  "ignoreFirstRows": "",
  "culture": "en-US"
}

Excel

Excel File connectors allow for one or more Microsoft Excel files from the cluster storage to be imported into a Datamodel.

Excel connections require additional configuration at the Table level via each Table's configOptions property.

Main Properties

NameTypeRequiredValue
providerstringYes"Excel"
schemastringYesPath of first file
fileNamestringYesOriginal file name of first file
parametersobjectYesConnection configuration
globalTableConfigOptionsobjectNoN/A

parameters Properties

NameTypeRequiredExample ValueDescription
ApiVersionnumberYes2Use value 2
filesstring[]YesAn array of file paths for all files
unionAllbooleanNoOptional: set to true to union all files in the dataset as one table

configOptions Properties

NameTypeRequiredExample ValueDescription
fieldsInFirstRowbooleanYestrueIs Excel's 1st row a header row
staticRangestringNo""
culturestringYes"en-US"CSV file culture code

Example

"connection": {
  "provider": "Excel",
  "schema": "/opt/sisense/storage/datasets/storage/4e/4eb09302-ad0d-4ed1-a733-31613c682504.xlsx",
  "parameters": {
    "ApiVersion": 2,
    "files": [
      "/opt/sisense/storage/datasets/storage/4e/4eb09302-ad0d-4ed1-a733-31613c682504.xlsx"
    ]
  },
  "uiParams": {},
  "globalTableConfigOptions": {},
  "fileName": "tenants.xlsx"
}
"configOptions": {
  "fieldsInFirstRow": true,
  "culture": "en-US",
  "staticRange": ""
}

EC2EC

Main Properties

NameTypeRequiredValue
providerstringYes"EC2EC"
schemastringYesName of datamodel
parametersobjectYesConnection configuration
globalTableConfigOptionsobjectNoN/A

parameters Properties

NameTypeRequiredExample ValueDescription
ApiVersionnumberYes2Use value 2
DatabasestringYesSample HealthcareName of datamodel
userNamestringYes"[email protected]"Sisense username
passwordstringYes"password"Sisense password

Example

"connection": {
  "provider": "EC2EC",
  "schema": "Sample Healthcare",
  "parameters": {
    "ApiVersion": 2,
    "userName": "[email protected]",
    "password": "password",
    "Database": "Sample Healthcare"
  }
}

MySQL

Main Properties

NameTypeRequiredValue
providerstringYes"MySql"
schemastringYesName of SQL Schema
parametersobjectYesConnection configuration
globalTableConfigOptionsobjectNoN/A

parameters Properties

NameTypeRequiredExample ValueDescription
ApiVersionnumberYes2Use value 2
ServerstringYesmysql.example.comMySQL Server location
userNamestringYes"admin"MySQL username
passwordstringYes"password"MySQL password
DatabasestringYes"test1"Name of database
SslSupportbooleanYesfalseUse SSL

Example

"connection": {
  "provider": "MySql",
  "schema": "test1",
  "parameters": {
    "ApiVersion": 2,
    "Server": "mysql.example.com",
    "userName": "admin",
    "password": "password",
    "SslSupport": false,
    "Database": "test1"
  }
}

Microsoft SQL Server

Main Properties

NameTypeRequiredValue
providerstringYes"sql"
schemastringYesName of SQL Schema
parametersobjectYesConnection configuration
globalTableConfigOptionsobjectNoN/A

parameters Properties

NameTypeRequiredExample ValueDescription
ApiVersionnumberYes2Use value 2
ServerstringYessql.example.comSQL Server location
UserNamestringYes"admin"SQL Server username
PasswordstringYes"password"SQL Server password
DatabasestringYes"AdventureWorks"Name of database
encryptbooleanYesfalseUse encryption

Example

"connection": {
    "provider": "sql",
    "schema": "Sales",
    "parameters": {
        "ApiVersion": 2,
        "Server": "sql.example.com",
        "UserName": "username",
        "Password": "password",
        "DefaultDatabase": "",
        "encrypt": false,
        "AdditionalParameters": "",
        "Database": "AdventureWorks"
    },
    "uiParams": {},
    "globalTableConfigOptions": {}
}

PostgreSQL

Main Properties

NameTypeRequiredValue
providerstringYes"PostgreSQL"
schemastringYesName of SQL Schema
parametersobjectYesConnection configuration
globalTableConfigOptionsobjectNoN/A

parameters Properties

NameTypeRequiredExample ValueDescription
ApiVersionnumberYes2Use value 2
ServerstringYespostgres.example.comSQL Server location
UserNamestringYes"admin"SQL Server username
PasswordstringYes"password"SQL Server password
DatabasestringYes"postgres"Name of database
SslSupportbooleanYesfalseUse SSL

Example

"connection": {
    "provider": "PostgreSQL",
    "schema": "public",
    "parameters": {
        "ApiVersion": 2,
        "Server": "postgres.example.com",
        "UserName": "username",
        "Password": "admin",
        "DefaultDatabase": "",
        "AdditionalParameters": "",
        "SslSupport": false,
        "Database": "postgres"
    },
    "uiParams": {},
    "globalTableConfigOptions": {}
}

Amazon RedShift

Main Properties

NameTypeRequiredValue
providerstringYes"RedShift"
schemastringYesName of Schema
parametersobjectYesConnection configuration
globalTableConfigOptionsobjectNoN/A

parameters Properties

NameTypeRequiredExample ValueDescription
ApiVersionnumberYes2Use value 2
ServerstringYesmyinstance.somekey.us-east-1.redshift.amazonaws.com:5439SQL Server location
UserNamestringYes"admin"SQL Server username
PasswordstringYes"password"SQL Server password
DatabasestringYes"dev"Name of database
EncryptConnectionbooleanYesfalseShould uses encrypted connection

Example

"connection": {
    "provider": "RedShift",
    "schema": "ec_sample_ecommerce",
    "parameters": {
        "ApiVersion": 2,
        "Server": "myinstance.somekey.us-east-1.redshift.amazonaws.com:5439",
        "UserName": "admin",
        "Password": "password",
        "DefaultDatabase": "dev",
        "EncryptConnection": false,
        "AdditionalParameters": "",
        "Database": "dev"
    },
    "uiParams": {},
    "globalTableConfigOptions": {}
}

Oracle DB

Main Properties

NameTypeRequiredValue
providerstringYes"Oracle"
schemastringYesName of SQL Schema
parametersobjectYesConnection configuration
globalTableConfigOptionsobjectNoN/A

parameters Properties

NameTypeRequiredExample ValueDescription
ApiVersionnumberYes2Use value 2
ConnectionTypestringYes"Service ID"Connection type
ServerstringYesoracle11g.someserver.comOracle DB Server location
PortstringYes"1521"Oracle DB Server Port
UserNamestringYes"admin"SQL Server username
PasswordstringYes"password"SQL Server password
ServiceIdstringNo"xe"Required if ConnectionType: Service ID is used
DatabasestringYes"dev"Name of database
EncryptConnectionbooleanYesfalseShould uses encrypted connection

Example

"connection": {
    "provider": "Oracle",
    "schema": "TEST",
    "parameters": {
        "ApiVersion": 2,
        "ConnectionType": "Service ID",
        "Server": "oracle11g.someserver.com",
        "UserName": "admin",
        "Password": "password",
        "ServiceId": "xe",
        "Port": "1521",
        "AdditionalParameters": "",
        "Database": "TEST"
    },
    "uiParams": {},
    "globalTableConfigOptions": {}
}

Snowflake

Main Properties

NameTypeRequiredValue
providerstringYes"SnowflakeJDBC"
schemastringYesName of Schema
parametersobjectYesConnection configuration
globalTableConfigOptionsobjectNoN/A

parameters Properties

NameTypeRequiredExample ValueDescription
ApiVersionnumberYes2Use value 2
connectionStringstringYes"jdbc:snowflake://example.eu-central-1.snowflakecomputing.com/?warehouse=DEMO_WH"Connection string
userNamestringYes"admin"Snowflake username
passwordstringYes"password"Snowflake password
DatabasestringYes"BASICDEMO"Name of database
useKeyPairAuthbooleanYesfalsetrue to use Key-Pair authentication, false to use username/password

Example

"connection": {
    "provider": "SnowflakeJDBC",
    "schema": "PUBLIC",
    "parameters": {
        "ApiVersion": 2,
        "connectionString": "jdbc:snowflake://example.eu-central-1.snowflakecomputing.com/?warehouse=DEMO_WH",
        "userName": "ADMIN",
        "password": "password",
        "useKeyPairAuth": false,
        "AdditionalParameters": "",
        "Database": "BASICDEMO"
    },
    "uiParams": {},
    "globalTableConfigOptions": {}
}

Salesforce

Main Properties

NameTypeRequiredValue
providerstringYes"SalesforceJDBC"
schemastringYesName of Schema
parametersobjectYesConnection configuration
globalTableConfigOptionsobjectNoN/A

parameters Properties

NameTypeRequiredExample ValueDescription
ApiVersionnumberYes2Use value 2
userNamestringYes"[email protected]"Snowflake username
passwordstringYes"password"Snowflake password
dTokenstringYes"VDPa3wOf0zeZftGWv3ApJI8J"Security token
UseSandboxbooleanYesfalseConnect in sandbox mode

Example

"connection": {
    "provider": "SalesforceJDBC",
    "schema": "Salesforce",
    "parameters": {
        "ApiVersion": 2,
        "userName": "[email protected]",
        "password": "password",
        "dToken": "VDPa3wOf0zeZftGWv3ApJI8J;",
        "UseSandbox": false,
        "prevProviderTypeIsSalesforce": false,
        "AdditionalParameters": ""
    },
    "uiParams": {},
    "globalTableConfigOptions": {}
}
Last Updated: