db_type (public)

 db_type

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

Returns:
the RDBMS type (i.e. oracle, postgresql) this OpenACS installation is using. The nsv ad_database_type is set up during the bootstrap process.

Partial Call Graph (max 5 caller/called nodes):
%3 test_db_bind_var_substitution db_bind_var_substitution (test acs-tcl) db_type db_type test_db_bind_var_substitution->db_type test_nullchar nullchar (test acs-tcl) test_nullchar->db_type test_sql_date sql_date (test acs-templating) test_sql_date->db_type apm_file_watchable_p apm_file_watchable_p (public) apm_file_watchable_p->db_type apm_load_queries apm_load_queries (private) apm_load_queries->db_type apm_package_supports_rdbms_p apm_package_supports_rdbms_p (public) apm_package_supports_rdbms_p->db_type apm_query_files_find apm_query_files_find (private) apm_query_files_find->db_type content::type::attribute::new content::type::attribute::new (public) content::type::attribute::new->db_type

Testcases:
db_bind_var_substitution, nullchar, sql_date
Source code:
    #
    # Currently this should always be either "oracle" or "postgresql":
    # --atp@piskorski.com, 2003/03/16 22:01 EST
    #
    # First check, if the database type exists in the namespaced
    # variable. This should be always the case. If this fail, fall
    # back to the old-style nsv (which can be costly in tight db loops)
    #
    if {[info exists ::acs::database_type]} {
        set result $::acs::database_type
    } else {
        set result [nsv_get ad_database_type .]
        ns_log Warning "db_type '$result' had to be obtained from the nsv 'ad_database_type'"
        set ::acs::database_type $result
    }
    return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: