From 2e8d5143a99bf1bcb532ce7191df3f6f575aabb7 Mon Sep 17 00:00:00 2001 From: totoro Date: Sat, 25 Jul 2015 11:58:25 +0200 Subject: [PATCH] change read by transmit and some cleanup --- database/db_types.anubis | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------- 1 file changed, 75 insertions(+), 76 deletions(-) diff --git a/database/db_types.anubis b/database/db_types.anubis index 688da57..a54d138 100644 --- a/database/db_types.anubis +++ b/database/db_types.anubis @@ -1,76 +1,75 @@ -/* - * Created by PyramIDE. - * User: Totoro - * Date: 14/11/2011 - * Time: 22:41 - * - * To change this template use Tools | Options | Coding | Edit Standard Headers. - */ -read tools/basis.anubis - -public type DB_id: - none, - db_id(Int value). - -public type DB_datetime: - datetime(String datetime). - -public type DB_date: - date(String date). - -public type DB_integer: - db_integer(Int value). - - -public define String - to_String - ( - DB_id idx - )= - if idx is - { - none then "none", - db_id(idx) then abs_to_decimal(idx) - }. - -public define String - to_String - ( - DB_date d - )= - date(d). - - - -public define String - to_String - ( - DB_datetime d - )= - datetime(d). - - - -public define String - to_DBString - ( - Bool value - )= - if value then "1" else "0". - -public define Int - to_DBInt - ( - Bool value - )= - if value then 1 else 0. - -public type SQLite3_update_field: - field(String column, SQLite3Bind bind). - - - * Some Bind helper * - - - - +/* + * Created by PyramIDE. + * User: Totoro + * Date: 14/11/2011 + * Time: 22:41 + * + */ +transmit tools/basis.anubis + +public type DB_id: + none, + db_id(Int value). + +public type DB_datetime: + datetime(String datetime). + +public type DB_date: + date(String date). + +public type DB_integer: + db_integer(Int value). + + +public define String + to_String + ( + DB_id idx + )= + if idx is + { + none then "none", + db_id(idx) then abs_to_decimal(idx) + }. + +public define String + to_String + ( + DB_date d + )= + date(d). + + + +public define String + to_String + ( + DB_datetime d + )= + datetime(d). + + + +public define String + to_DBString + ( + Bool value + )= + if value then "1" else "0". + +public define Int + to_DBInt + ( + Bool value + )= + if value then 1 else 0. + +public type SQLite3_update_field: + field(String column, SQLite3Bind bind). + + + * Some Bind helper * + + + + -- libgit2 0.21.4