Class Relations
- class: ::nx::EnsembleObject
::nx::EnsembleObject create ::acs::db::nsdb-postgresql::slot::__call::party_approved_member
Methods (to be applied on the object)
add (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select party_approved_member__add(CAST(:party_id AS integer),CAST(:member_id AS integer),CAST(:rel_id AS integer),:rel_type)}]
return [ns_set value $s 0]
}
add_one (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select party_approved_member__add_one(CAST(:party_id AS integer),CAST(:member_id AS integer),CAST(:rel_id AS integer))}]
return [ns_set value $s 0]
}
remove (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select party_approved_member__remove(CAST(:party_id AS integer),CAST(:member_id AS integer),CAST(:rel_id AS integer),:rel_type)}]
return [ns_set value $s 0]
}
remove_one (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select party_approved_member__remove_one(CAST(:party_id AS integer),CAST(:member_id AS integer),CAST(:rel_id AS integer))}]
return [ns_set value $s 0]
}