aboutsummaryrefslogtreecommitdiff
path: root/gn3/utility/db_tools.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/utility/db_tools.py')
-rw-r--r--gn3/utility/db_tools.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/gn3/utility/db_tools.py b/gn3/utility/db_tools.py
deleted file mode 100644
index 446acda..0000000
--- a/gn3/utility/db_tools.py
+++ /dev/null
@@ -1,19 +0,0 @@
-"""module for db_tools"""
-from MySQLdb import escape_string as escape_
-
-
-def create_in_clause(items):
- """Create an in clause for mysql"""
- in_clause = ', '.join("'{}'".format(x) for x in mescape(*items))
- in_clause = '( {} )'.format(in_clause)
- return in_clause
-
-
-def mescape(*items):
- """Multiple escape"""
- return [escape_(str(item)).decode('utf8') for item in items]
-
-
-def escape(string_):
- """escape function"""
- return escape_(string_).decode('utf8')