diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-07 18:06:22 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-07 22:42:01 +0100 |
commit | 7c5a82bf6a39ddbf9702692373b71eee2feb972b (patch) | |
tree | 412e5ae1d8a25513192de8836a366695eb4d6563 /tools/sqldelim.h | |
parent | 94e6b12fbea34f1b0f503955dace3ef69d3ec1f4 (diff) | |
download | msitools-7c5a82bf6a39ddbf9702692373b71eee2feb972b.tar.gz msitools-7c5a82bf6a39ddbf9702692373b71eee2feb972b.tar.xz msitools-7c5a82bf6a39ddbf9702692373b71eee2feb972b.zip |
msibuild: add options to execute arbitrary queries
Diffstat (limited to 'tools/sqldelim.h')
-rw-r--r-- | tools/sqldelim.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/sqldelim.h b/tools/sqldelim.h new file mode 100644 index 0000000..ade9de0 --- /dev/null +++ b/tools/sqldelim.h @@ -0,0 +1,21 @@ +/* +** 2001 September 15 +** +** The author disclaims copyright to this source code. In place of +** a legal notice, here is a blessing: +** +** May you do good and not evil. +** May you find forgiveness for yourself and forgive others. +** May you share freely, never taking more than you give. +** +************************************************************************* +** A tokenizer for SQL +** +** This file contains C code that splits an SQL input string up into +** individual tokens and sends those tokens one-by-one over to the +** parser for analysis. +*/ + +int sql_get_statement(const char *start, + int (*fn)(const char *stmt, void *opaque), + void *opaque); |