Projects

Data Sources

Each project will have their own data source connections and different environments. In this page is where you add or edit your connections that will be used in your Model.

In this document you will find information about:

  • Taps
  • Sinks
  • Import and export of taps and sinks
  • Environments

Taps

Taps are input connections to databases. The available taps may vary depending on your license but there are different types.

A tap can only have one model. It is not possible to create multiple models for a unique tap.

OSS

Supported OSS (OpenSource databases):

  • MySQL
  • SQLite
  • PostgreSQL

Proprietary databases

  • SQL Server
  • Oracle
  • IBM Db2 for i (AS/400)
  • IBM Db2 for z/OS
  • Azure SQL Database (with the SQL Server driver)
  • Salesforce

IBM Db2 taps require the Gigantics Debaser layer for low-level extraction. Make sure the corresponding drivers are installed on the host running Debaser before configuring the connection.

To use an Oracle database it is necessary to install the drivers manually. Check how to configure them here.

  • Oracle taps must prepend the host in the Database field: Database: <host>/<database_name>
  • IBM Db2 taps need the correct subsystem or library list defined in the Debaser configuration so entity discovery can enumerate tables properly.
  • Salesforce taps rely on connected app credentials (consumer key/secret) and an OAuth token; keep them handy when creating the connection.

NoSQL databases

Big Data databases

  • Databricks (Databricks SQL Warehouses with Unity Catalog)

Files and storage

  • File Storage: CSV, JSON, YAML, XML, Excel, Parquet and EDI files on the local disk, over SSH/SFTP, in Google Drive or in SharePoint

In the driver selector of the create form, the drivers are grouped as OSS datasources, Enterprise datasources, Big data (MongoDB and Redis), Cloud datasources (Google Cloud SQL and Databricks) and Files & storage (File Storage).

Sinks

Sinks are output connections to databases. Like Taps, they are divided by type of database according to the license type.

There are two types of sinks:

  • Static: Sinks always refer to the same database.
  • Dynamic: Each time a sink is written to, a new database is created in the db host, where we provide the connection data (database name where we provide the connection data (database name, user and password to access it), user and password to access it).

Import and Export

Taps and sinks can be exported to a YAML file and imported from it, for example to copy connections from one project or installation to another.

Taps / Sinks page
┌──────────────────────────────────────────────────────────────────────┐
│ [Search] [Sort]          [Import from file] [Export all] [Create]    │
├──────────────────────────────────────────────────────────────────────┤
│ Name          Driver     ...                    Actions              │
│ CRM prod      Postgres   ...                    [...] Edit           │
│                                                       Start new model│
│                                                       Export         │
│                                                       Delete         │
└──────────────────────────────────────────────────────────────────────┘

Export

  • Export in the Actions menu of a row downloads that tap or sink as <name>.yml. Characters other than letters, digits, _ and - in the name are replaced by _
  • Export all in the toolbar downloads every tap (or sink) of the project as a YAML list, in taps-export-YYYY-MM-DD.yml or sinks-export-YYYY-MM-DD.yml. The search box does not filter the export. If there is nothing to export, the error No taps to export (or No sinks to export) is shown
  • Secrets are never written to the file. They are replaced by the mask __GIGANTIC__123103810 (an empty secret stays empty):
    • the authentication password and private key
    • the SSH tunnel password, passphrase and private key text
    • the DB2 for i SSH Private Key and SSH Passphrase
    • the File Storage Client Secret (Google Drive and SharePoint) and Refresh Token (Google Drive)
    • the values of the Custom Params keys that look like a secret. The key name is compared ignoring case, _, - and .: it is a secret when it contains password, passwd, passphrase, pwd, secret, token, credential, privatekey, apikey, accesskey, accountkey or keycontent, or when it is just key. Everything nested under such a key is masked too. When something is masked, the Custom Params are written again as YAML, without their comments. Keys like shardingKey or tlsCertificateKeyFile are not secrets and are kept

File format

The file contains one tap or sink, or a list of them. Only name and driver are required.

KeyDescription
nameName of the tap or sink
driverOne of CSV, DB2i, DB2x, DB2z, Databricks, FileStorage, GoogleCloudSQL, MSSQL, MongoDB, MySQL, Oracle, Postgres, Redis, Salesforce, Sqlite
host, port, database, dbSchema, owner, containerConnection fields. Their meaning depends on the driver (see the driver pages)
customParamsCustom Params, as a YAML text
environmentEnvironment, as an id or as { id, name }. Only the id is used
authtype (none, username/password, passwordManager, ...), username, password, domain, authdatabase, role, consumerKey, privateKey and the password manager keys passwordManagerId, passwordManagerUsername, passwordManagerURLPath, passwordManagerENV. Default type: none
tunnelSSH tunnel: enabled, host, port, authType (password or privateKey), privateKeyType (path or text), privateKey, privateKeyPath, username, password, passphrase. Defaults: enabled: false, authType: password, privateKeyType: path
backendMode, remoteTempPath, sshPort, sshPrivateKey, sshPassphraseDB2 for i and DB2 for z only. backendMode is the backend of the driver; the other keys are the DB2 for i SSH backend settings (Remote Temp Path, SSH Port, SSH Private Key, SSH Passphrase)
overwriteAllowedTaps only
addToModels, isDynamic, prefix, writeModesSinks only. Defaults: false, false and empty. writeModes is the list of allowed write modes (truncate, drop, append, update, merge); set it in the file, because when it is missing the sink is saved with an empty list instead of the five modes that the form selects by default

Example with one tap:

- name: CRM production
  driver: Postgres
  host: db.example.com
  port: '5432'
  database: crm
  dbSchema: public
  customParams: ''
  auth:
    type: username/password
    username: gig_reader
  tunnel:
    enabled: false
  overwriteAllowed: false

Example with one sink:

name: CRM test
driver: Postgres
host: test-db.example.com
port: '5432'
database: crm_test
dbSchema: public
auth:
  type: username/password
  username: gig_writer
tunnel:
  enabled: false
addToModels: false
isDynamic: false
writeModes:
  - truncate
  - append

Import

  1. Open the Taps or Sinks page and click Import from file
  2. Choose a .yml or .yaml file
  3. Every entry is checked before anything is created. If one entry is wrong, nothing is imported and one of these errors is shown:
    • Invalid YAML file
    • Each entry must have at least "name" and "driver" fields
    • Invalid driver "<driver>". Valid drivers: ...
  4. Each entry creates a new tap or sink. As when a tap is created from the form, each new tap gets a model named main and a free license slot, if there is one. A sink with addToModels: true is added to the models of the taps with the same driver
  5. An entry whose name is already used by a tap (or sink) of the project, or by an earlier entry of the file, is skipped. The warning Not imported, a tap with the same name already exists: <names> (or a sink) lists the skipped names. The other entries are imported

Importing, the row Actions menu and the Create button need the role permission Create and edit taps and sinks. Custom Params must be a YAML object, otherwise the entry fails with Invalid custom parameters yaml input.

  • Duplicates: the import never changes an existing tap or sink, so importing the same file twice does not create anything the second time. To replace a tap or sink with the one of the file, delete or rename it before importing.
  • Secrets: a masked secret is not imported. The new tap or sink is saved without that secret (a masked Custom Params key is removed), so after importing, edit each tap or sink and type the secrets again. A secret written in clear in the file is imported.
  • Connection fields that are not secrets (host, user, paths...) and the other Custom Params are exported as plain text.

Environments

It is possible to create environments to group taps and/or sinks so you can have your connections organized.

A tap or sink can only belong to one environment.