====== Tabli - Add a Connection ====== ===== About ===== The ''connection add'' operations will add a connection to the [[docs:conf:vault|connection vault]]. If the connection already exists, this operations will return an error whereas the [[upsert|upsert operation]] will not. ===== Example ===== Adding a [[docs:system:sqlite:sqlite|Sqlite database]] with the name ''sqliteDbName'': tabli connection delete --not-strict "sqliteDbName" tabli connection add "sqliteDbName" "jdbc:sqlite://%TMP%/db.db" The connection (sqliteDbName) was saved into the connection vault (C:\Users\gerardnico\.tabli\dns.ini) ===== Syntax ===== tabli connection add --help Tabli connection add ==================== Add a connection Example ------- 1 - To add the connection `name` with the URL `url`: tabli connection add name url Syntax ------ tabli connection add [options|flags] where: Arguments: the connection name The system connection string (a JDBC Url for a database or a file system URL) Data Definition Options: -a,--attribute A attribute (known also as connection properties) Options: -d,--driver The jdbc driver (JDBC URL only) -p,--password The user password (A passphrase is then mandatory because password should be encrypted) -u,--user The user name (ie the login name) Global Options: -cf,--conf The path to a configuration file -cv,--connection-vault The path where the connection vault is located -h,--help Print this help -l,--log-level Set the log level -ns,--not-strict A minor error will not stop the process. -odu,--output-data-uri defines the output data uri for the feedback data (default: console) -oo,--output-operation defines the data operations (replace, truncate) on an existing output resource before transfer. -oop,--output-transfer-operation defines the output transfer operation (insert, update, merge, copy). Default to `copy` for a file system and `insert` for a database. -pp,--passphrase A passphrase (master password) to decrypt the encrypted values