From a21ea6a9741c5e4e0b8f45c5f9174eebfa595334 Mon Sep 17 00:00:00 2001 From: Wenbo Wu Date: Tue, 28 Jun 2016 13:58:42 -0500 Subject: [PATCH] add ping() function --- datajoint/connection.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/datajoint/connection.py b/datajoint/connection.py index 739e3208d..dc9910a05 100644 --- a/datajoint/connection.py +++ b/datajoint/connection.py @@ -99,6 +99,12 @@ def is_connected(self): """ return self._conn.ping() + def ping(self): + """ + Keep the sql server connected + """ + return self._conn.ping() + def query(self, query, args=(), as_dict=False): """ Execute the specified query and return the tuple generator (cursor).