summaryrefslogtreecommitdiffstats
path: root/tools/sqldelim.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-12-07 18:06:22 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-12-07 22:42:01 +0100
commit7c5a82bf6a39ddbf9702692373b71eee2feb972b (patch)
tree412e5ae1d8a25513192de8836a366695eb4d6563 /tools/sqldelim.h
parent94e6b12fbea34f1b0f503955dace3ef69d3ec1f4 (diff)
downloadmsitools-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.h21
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);