template::util::is_unique (public)
template::util::is_unique table columns values
Defined in packages/acs-templating/tcl/util-procs.tcl
Queries a database table for the existence of a particular row. Useful for validating form input to reduce the possibility of unique constraint violations.
- Parameters:
- table (required)
- The name of a database table.
- columns (required)
- A list of columns on which to select the row.
- values (required)
- A list of values for each specified column.
- Returns:
- 1 if the row exists, 0 if not
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.