...
Div | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
On this page
| ||||||||||
Section | ||||||||||
Column |
Description
This information is primarily for the Confluence or SQL for Confluence administrator.
...
Data Source Profiles allow the Confluence Administrator to extend Data Sources by providing additional configuration parameters for use by SQL macros.
...
How to implement role based security for SQL queries provides an example use case.
Definition
Each data source profile is identified by a unique name. Name is case specific, just like application server defined data sources. The value field is a | (bar) separated list of parameter expressions of the form name=value. This is just like wiki markup macro parameters. Parameters are case insensitive.
Screen Shot
- Go to Manage Add-ons in Confluence administration
- Find the SQL add-on in the list
- Click on the Configure button
...
Like Data Sources, Data Source Profiles are referenced by the SQL, SQL-query, and SQL-file Macros using the dataSource parameter.
Info |
---|
Note: you must have at least one Data Source in order to begin using this application within Confluence. |
Add Data Source Profiles
To add new or extend an existing Data Source Profile:
- Log in as a user with the Confluence Administrators Global Permission.
- Select Add-ons from the Administration menu (cog icon: ) at the top right of your screen. Then scroll down to Bob Swift Configuration on the left-hand nav bar and choose SQL Configuration (see: ).
- Select View and Modify Data Source Profiles (see: ) from the top navigation.
- Click on the button.
The Add Profile screen will provide you with two setup options:
- Simple - this is the most straightforward way to connect to your database.
- By connection string - use this option if you want to specify additional parameters and are comfortable constructing a database URL.
Depending on the setup type, you'll be prompted for the following information.
Setup type | Field | Description | |||||
---|---|---|---|---|---|---|---|
Simple | Database type | They type of database you are connecting to. | |||||
Simple | Hostname | This is the hostname or IP address of your database server. | |||||
Simple | Port | This is the port used to access your database on the server it is running against. | |||||
Simple | Database | This is the name of your database. | |||||
Both | Driver class | The class of JDBC driver that you will use to connect to your database (e.g., com.mysql.jdbc.Driver, or org.postgresql.Driver) | |||||
Both | Driver JAR location | The path on your Confluence server where the JDBC driver is located.
| |||||
By connection string | Connection string | The database URL is entered in this format (SQLServer example):jdbc:sqlserver://<hostname>:<port>;database=<database> For example: | |||||
Both | Username | This is the username of your dedicated database user. | |||||
Both | Password | This is the password for your dedicated database user. |
View Data Source Profiles
To view, add, or modify a Data Source Profile:
- Log in as a user with the Confluence Administrators Global Permission.
- Select Add-ons from the Administration menu (cog icon: ) at the top right of your screen. Then scroll down to Bob Swift Configuration on the left-hand nav bar and choose SQL Configuration (see: ).
- Select View and Modify Data Source Profiles (see: ) from the top navigation.
- You will see a list of Data Source Profiles and their connection status.
Security
Data sources are shared resources. Some of these resources may need to be secured for use only by specific users or groups. This can be accomplished by using CMSP and configuring access to the macro and perhaps to individual profiles.
Parameters
Table plus | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...