Skip to content

Returns the name of the current database.

func.database()
func.database()
┌───────────────┐
│ 'my_database' │
└───────────────┘
DATABASE()
SELECT DATABASE();
┌─────────────┐
│ my_database │
└─────────────┘