Class Relations
- class: ::nx::EnsembleObject
::nx::EnsembleObject create ::acs::db::nsdb-postgresql::slot::__call::rel_constraint
Methods (to be applied on the object)
delete (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select rel_constraint__delete(CAST(:constraint_id AS integer))}]
return [ns_set value $s 0]
}
get_constraint_id (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select rel_constraint__get_constraint_id(CAST(:rel_segment AS integer),:rel_side,CAST(:required_rel_segment AS integer))}]
return [ns_set value $s 0]
}
new (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select rel_constraint__new(CAST(:constraint_id AS integer),:constraint_type,:constraint_name,CAST(:rel_segment AS integer),:rel_side,CAST(:required_rel_segment AS integer),CAST(:context_id AS integer),CAST(:creation_user AS integer),:creation_ip)}]
return [ns_set value $s 0]
}
violation (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select rel_constraint__violation(CAST(:rel_id AS integer))}]
return [ns_set value $s 0]
}
violation_if_removed (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select rel_constraint__violation_if_removed(CAST(:rel_id AS integer))}]
return [ns_set value $s 0]
}