xo::db::require proc table (public)
xo::db::requiretable 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
![[i]](/resources/acs-subsite/ZoomIn16.gif)