Class Relations
- class: ::nx::EnsembleObject
::nx::EnsembleObject create ::acs::db::nsdb-postgresql::slot::__call::util
Methods (to be applied on the object)
foreign_key_exists (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select util__foreign_key_exists(:table_name,:column,:reftable,:refcolumn)}]
return [ns_set value $s 0]
}
get_default (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select util__get_default(:table_name,:column)}]
return [ns_set value $s 0]
}
get_primary_keys (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select util__get_primary_keys(:table_name)}]
return [ns_set value $s 0]
}
index_exists (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select util__index_exists(:name)}]
return [ns_set value $s 0]
}
logical_negation (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select util__logical_negation(:true_or_false)}]
return [ns_set value $s 0]
}
multiple_nextval (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select util__multiple_nextval(:v_sequence_name,CAST(:v_count AS integer))}]
return [ns_set value $s 0]
}
not_null_exists (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select util__not_null_exists(:table_name,:column)}]
return [ns_set value $s 0]
}
primary_key_exists (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select util__primary_key_exists(:table_name,:column,:single_p)}]
return [ns_set value $s 0]
}
table_column_exists (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select util__table_column_exists(:table_name,:column)}]
return [ns_set value $s 0]
}
table_exists (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select util__table_exists(:name)}]
return [ns_set value $s 0]
}
unique_exists (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select util__unique_exists(:table,:column,:single_p)}]
return [ns_set value $s 0]
}
view_exists (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select util__view_exists(:name)}]
return [ns_set value $s 0]
}