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

 xo::db::require[i] table name definition [ populate ]

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

Create a table if needed, or add missing columns to an existing table.

Parameters:
name (required)
Table name.
definition (required)
Dictionary mapping column names to SQL definitions.
populate (optional)
Optional SQL to run after creating the table.

Testcases:
xotcl_core_tutorial_2
[ show source ]
Show another procedure: