::xo::db::DB ::xo::db::DB 0or1row 1row dml exec_0or1row foreach get_value list list_of_lists multirow prepare profile psql_statement_suffix row_lock transaction ::xo::db::Driver ::xo::db::Driver 0or1row 1row dml ds foreach get_sql get_value insert-view-operation list list_of_lists map_default_dbn prepare row_lock sets transaction ::xo::db::DB->::xo::db::Driver ::xo::db::DBI ::xo::db::DBI 0or1row 1row dml foreach generate_psql get_value list list_of_lists prepare profile sets sql_arg_info transaction ::xo::db::DBI->::xo::db::Driver ::xotcl::Object ::xotcl::Object ::xo::db::Driver->::xotcl::Object ::xo::db::DB-oracle ::xo::db::DB-oracle generate_psql get_all_package_functions get_function_args sets ::xo::db::DB-oracle->::xo::db::DB ::xo::db::oracle ::xo::db::oracle ::xo::db::DB-oracle->::xo::db::oracle ::xo::db::DB-postgresql ::xo::db::DB-postgresql 0or1row 1row dml foreach generate_psql get_value insert-view-operation list list_of_lists multirow prepare row_lock sets ::xo::db::DB-postgresql->::xo::db::DB ::xo::db::postgresql ::xo::db::postgresql ::xo::db::DB-postgresql->::xo::db::postgresql

Class ::xo::db::DB

::xo::db::DB[i] create ...

Defined in

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xo::db::Driver[i]
  • subclass: ::xo::db::DB-oracle[i], ::xo::db::DB-postgresql[i]

Methods (to be applied on instances)

  • 0or1row (scripted)

  • 1row (scripted)

  • dml (scripted)

  • exec_0or1row (scripted)

  • foreach (scripted)

  • get_value (scripted)

  • list (scripted)

  • list_of_lists (scripted)

  • multirow (scripted)

  • prepare (scripted)

  • profile (scripted)

  • psql_statement_suffix (scripted)

  • row_lock (scripted)

  • transaction (scripted, public)

     <instance of xo::db::DB[i]> transaction [ -dbn dbn ] script args \
        [ args... ]

    Evaluate a script in the caller within a database transaction.

    Switches:
    -dbn (optional)
    Database name, or empty for the default.
    Parameters:
    script (required)
    Tcl script to execute.
    args (required)
    Additional arguments to db_transaction.

    Testcases:
    xotcl_core_tutorial_1, xotcl_core_tutorial_2, xotcl_core_tutorial_4, test_xo_db_object, test_cr_items