xo::db::require proc function_args (public)

 xo::db::require[i] function_args [ -kernel_older_than kernel_older_than ] \
    [ -package_key_and_version_older_than package_key_and_version_older_than ] \
    [ -check_function check_function ] sql_file

Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl

Load the SQL file, if the kernel is older than the specified version, and the version of the specified package is older, and the check_function does not exist in function_args.

Sample usage: ::xo::db::require function_args \
  -kernel_older_than 5.5.0 \
  -older_than_package_key_and_version "xowiki 0.50" \
  -check_function "acs_object_type__create_type" \
  [acs_package_root_dir xotcl-request-broker]/patches/funcs-1.sql

Switches:
-kernel_older_than (optional)
-package_key_and_version_older_than (optional)
-check_function (optional)
Parameters:
sql_file (required)

Testcases:
No testcase defined.
[ show source ]
Show another procedure: