xo::db::require proc unique

 xo::db::require[i] unique

Defined in

Partial Call Graph (max 5 caller/called nodes):
%3 test_xotcl-core xotcl-core (test ) xo::db::require proc unique xo::db::require proc unique test_xotcl-core->xo::db::require proc unique test_xotcl_core_tutorial_2 xotcl_core_tutorial_2 (test ) test_xotcl_core_tutorial_2->xo::db::require proc unique

Testcases:
xotcl_core_tutorial_2, xotcl-core
Source code:
# Unique could be there by an index too
set idxname [::xo::dc mk_sql_constraint_name $table $col un_idx]
if {[::acs::dc call util index_exists -name $idxname]} return
if {![::acs::dc call util unique_exists -table $table -column $col]} {
  ::xo::dc dml alter-table-$table  "alter table $table add unique ($col)"
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: