SQLX options

NoteIn Table 5-1, underlined words specify the default value.

Table 5-1: Options for SQLX mappings

Option name

Option value

Purpose

binary

hex | base64

Representation of binary. Applies only to for xml clause.

columnstyle

element | attribute

Representation of SQL columns

entitize

yes | no | cond

for xml clause

format

yes | no

Include formatting

header

yes | no | encoding

Default value depends on the return type. See Chapter 6, “XML Support for I18N.”

Include the XML declaration

incremental

yes | no

Return a single row or multiple rows from a select statement that specifies for xml

multipleentitize

yes | no

for xml clause

nullstyle

attribute | omit

Representation of nulls with columnstyle=element

ncr

non_ascii | non_server | no

for xml clause

prefix

SQL name

Base for generated names. Default value is C.

root

yes | no

Include a root element for the table name

rowname

SQL name

Name of the row element.

Default value is row.

schemaloc

quoted string with a URI

schemalocation value

statement

yes | no

Include the SQL query

tablename

SQL name

Name of the root element. Default value is resultset.

targetns

quoted string with a URI

targetnamespace value (if any)

xsidecl

yes | no

for xml clause