Class Relations
- class: ::nx::EnsembleObject
::nx::EnsembleObject create ::acs::db::nsdb-postgresql::slot::__call::acs_attribute
Methods (to be applied on the object)
add_description (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select acs_attribute__add_description(:object_type,:attribute_name,:description_key,:description)}]
return [ns_set value $s 0]
}
create_attribute (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select acs_attribute__create_attribute(:object_type,:attribute_name,:datatype,:pretty_name,:pretty_plural,:table_name,:column_name,:default_value,CAST(:min_n_values AS integer),CAST(:max_n_values AS integer),CAST(:sort_order AS integer),:storage,:static_p,:create_column_p,:database_type,:size,:null_p,:references,:check_expr,:column_spec)}]
return [ns_set value $s 0]
}
drop_attribute (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select acs_attribute__drop_attribute(:object_type,:attribute_name,:drop_column_p)}]
return [ns_set value $s 0]
}
drop_description (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select acs_attribute__drop_description(:object_type,:attribute_name,:description_key)}]
return [ns_set value $s 0]
}