SQL-file Macro - 8.x

SQL-file Macro - 8.x

This content is archived.

On this page

Description

This macro has similar parameters as the SQL Macro and behaves similarly in most cases. There are two primary reasons for using sql-file:

  1. Security - it can be secured separately from the other SQL macros. 

    1. Using Macro Security for Confluence, more general users can be authorized to use this macro since the administrator controls what queries can be accessed.

    2. When not using Macro Security for Confluence, the administrator can disable the sql and sql-query macros and still allow the sql-file macro, since it has a fixed set of queries that can be run. 

  2. Simplified file access parameter.

Parameters

Parameter

Required

Default

Macro Browser Label

Description

Parameter

Required

Default

Macro Browser Label

Description

file

  • may be restricted

 

File

File path in the configured Confluence server home directory under the script directory.

 

Examples

 {sql-file:dataSource=testDS|file=authorized.sql}

 

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.