tdbc::tokenize(3tcl) | Tcl Database Connectivity | tdbc::tokenize(3tcl) |
tdbc::tokenize - TDBC SQL tokenizer
package require tdbc 1.0 tdbc::tokenize string
As a convenience to database drivers, Tcl Database Connectivity (TDBC) provides a command to break SQL code apart into tokens so that bound variables can readily be identified and substituted.
The tdbc::tokenize command accepts as its parameter a string that is expected to contain one or more SQL statements. It returns a list of substrings; concatenating these substrings together will yield the original string. Each substring is one of the following:
tdbc(3tcl), tdbc::connection(3tcl), tdbc::statement(3tcl), tdbc::resultset(3tcl)
TDBC, SQL, database, tokenize
Copyright (c) 2008 by Kevin B. Kenny.
8.6 | Tcl |