db_1row (public)

 db_1row [ -subst subst ] [ args... ]

Defined in packages/acs-tcl/tcl/01-database-procs.tcl

A wrapper for db_0or1row, which produces an error if no rows are returned.

Switches:
-subst (optional, defaults to "all")
Returns:
1 if variables are set, otherwise an exception is thrown.
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_object_procs_test acs_object_procs_test (test acs-tcl) db_1row db_1row test_acs_object_procs_test->db_1row test_acs_user__ban_approve acs_user__ban_approve (test acs-tcl) test_acs_user__ban_approve->db_1row test_acs_user__registered_user_p acs_user__registered_user_p (test acs-tcl) test_acs_user__registered_user_p->db_1row test_ad_context_bar_multirow ad_context_bar_multirow (test acs-tcl) test_ad_context_bar_multirow->db_1row test_ad_proc_permission_permission_p ad_proc_permission_permission_p (test acs-tcl) test_ad_proc_permission_permission_p->db_1row Class ::acs::SiteNode Class ::acs::SiteNode (public) Class ::acs::SiteNode->db_1row Class ::xo::db::Class Class ::xo::db::Class (public) Class ::xo::db::Class->db_1row Class ::xo::db::CrClass Class ::xo::db::CrClass (public) Class ::xo::db::CrClass->db_1row Class ::xo::db::CrFolder Class ::xo::db::CrFolder (public) Class ::xo::db::CrFolder->db_1row acs::SiteNode instproc properties acs::SiteNode instproc properties (protected) acs::SiteNode instproc properties->db_1row

Testcases:
test_apm_parameter__register, test_apm_package_instance__new, apm_version_names_compare, apm__test_info_file, site_node_get_children, acs_user__registered_user_p, acs_user__ban_approve, parameter_register_test, parameter__check_procs, community_cc_procs, person_procs_test, party_procs_test, db__1row, util_http_json_encoding, ad_context_bar_multirow, acs_object_procs_test, ad_proc_permission_permission_p
Source code:
    if { ![uplevel ::db_0or1row -subst $subst $args] } {
        return -code error "Query did not return any rows."
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: