summaryrefslogtreecommitdiffstats
path: root/tools/sqldelim.h
diff options
context:
space:
mode:
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);