aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/vk/utils/tracking/db/backend/null.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-06-18 02:22:36 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-06-18 02:22:36 +0300
commitf39f18c94060642859900bdb04cb4df2164bc8b4 (patch)
treeeb29d7577e95c32a0894c134214b86db44c3b074 /vk/utils/tracking/db/backend/null.py
parentrefactoring (diff)
downloadvk-scripts-f39f18c94060642859900bdb04cb4df2164bc8b4.tar.gz
vk-scripts-f39f18c94060642859900bdb04cb4df2164bc8b4.zip
put format-specific db writers/readers together
Diffstat (limited to 'vk/utils/tracking/db/backend/null.py')
-rw-r--r--vk/utils/tracking/db/backend/null.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/vk/utils/tracking/db/backend/null.py b/vk/utils/tracking/db/backend/null.py
new file mode 100644
index 0000000..139a9f0
--- /dev/null
+++ b/vk/utils/tracking/db/backend/null.py
@@ -0,0 +1,37 @@
+# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is licensed under the terms of the MIT License.
+# See LICENSE.txt for details.
+
+from collections.abc import Iterable
+
+class Writer:
+ def __init__(self, fd):
+ pass
+
+ def __enter__(self):
+ return self
+
+ def __exit__(self, *args):
+ pass
+
+ def on_initial_status(self, user):
+ pass
+
+ def on_status_update(self, user):
+ pass
+
+ def on_connection_error(self, e):
+ pass
+
+class Reader(Iterable):
+ def __init__(self, fd):
+ pass
+
+ def __enter__(self):
+ return self
+
+ def __exit__(self, *args):
+ pass
+
+ def __iter__(self):
+ pass