xowiki::hstore::update_hstore (private)

 xowiki::hstore::update_hstore package_id

Defined in packages/xowiki/tcl/xowiki-utility-procs.tcl

Update all instance attributes in hstore. This proc can be used from ds/shell as follows: ::xo::Package initialize -url /xowiki ::xowiki::hstore::update_hstore $package_id

Parameters:
package_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 callback::subsite::parameter_changed::impl::xowiki callback::subsite::parameter_changed::impl::xowiki (private) xowiki::hstore::update_hstore xowiki::hstore::update_hstore callback::subsite::parameter_changed::impl::xowiki->xowiki::hstore::update_hstore

Testcases:
No testcase defined.
Source code:
    if {![::xo::dc has_hstore] && [::$package_id get_parameter use_hstore:boolean 0] } {
      return 0
    }

    # Check the result
    #
    #    select hkey from xowiki_page_instance where hkey is not null;
    #
    ::xo::Package require $package_id
    #
    # We get all revisions, so use the lower level interface
    #
    set items [::xowiki::FormPage instantiate_objects  -sql [subst {
                     select * from xowiki_form_pagei bt,cr_items i  where bt.object_package_id = [ns_dbquotevalue $package_id]  and bt.item_id = i.item_id
                   }]  -object_class ::xowiki::FormPage]
    set count 0
    foreach i [$items children] {
      #$i msg "working on [$i set xowiki_form_page_id]"
      $i save_in_hstore
      incr count
    }
    $items msg "fetched $count objects from parent_id [::$package_id folder_id]"
    return 1
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: