Skip to main contentModule system
Source - benchmark
- BENCHMARK(count, expr) - Run expression count times (for testing)
- connection_id
- CONNECTION_ID() - Connection identifier (file-based, use process ID)
- database
- DATABASE() - Current database name
- found_rows
- FOUND_ROWS() - Number of rows found (would need context)
- last_insert_id
- LAST_INSERT_ID() - Last inserted ID (would need context)
- row_number
- ROW_NUMBER() - Row number (context-dependent, passed in)
- sleep
- SLEEP(seconds) - Sleep for specified seconds
- user
- USER() / CURRENT_USER() - Current user (not applicable for file-based DB)
- uuid
- UUID() / UUID_GENERATE() - Generate UUID
- version
- VERSION() - DDB version