database_name

Returns current database name.

Target function

Signature

1database_name()

Returns current database name.

database_name is a global callable that can be used wherever an expression is valid. database_name is part of datasource access. Prefer bind values for visitor input, inspect errors during writes, and keep display escaping separate from SQL handling.

Examples

Basic call

1database_name
The example shows the call shape; use bind values and checked errors for visitor-supplied data.