aboutsummaryrefslogtreecommitdiffstats
path: root/src/sqlite.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sqlite.rs')
-rw-r--r--src/sqlite.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sqlite.rs b/src/sqlite.rs
new file mode 100644
index 0000000..10dbb61
--- /dev/null
+++ b/src/sqlite.rs
@@ -0,0 +1,9 @@
+use rusqlite;
+
+
+/// Get the fundamental SQLite datatype for a given type name.
+///
+/// Use the SQLite rules for type affinity described in:
+/// https://sqlite.org/datatype3.html#determination_of_column_affinity
+pub fn affinity(type_name: &str) -> rusqlite::types::Type {
+}