From 41fbe378532ee469f17fdb550953b8eee4f81458 Mon Sep 17 00:00:00 2001 From: totoro Date: Fri, 22 May 2015 23:50:11 +0200 Subject: [PATCH] add bind_BLOB --- database/db_utils.anubis | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/database/db_utils.anubis b/database/db_utils.anubis index ebd3edb..5a4ffd3 100644 --- a/database/db_utils.anubis +++ b/database/db_utils.anubis @@ -294,7 +294,14 @@ public define SQLite3Bind )= bind_Int(name, to_DBInt(value)). - +public define SQLite3Bind + bind_BLOB + ( + String name, + $V value + )= + bind_ByteArray(name, serialize(value)). + // -- Migration HELPERS --------------- public define DbBind -- libgit2 0.21.4