mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:06:08 -04:00
Add database version to phonehome stats. (#4753)
This commit is contained in:
parent
57426ec6a3
commit
f191be822b
5 changed files with 46 additions and 0 deletions
|
@ -70,6 +70,15 @@ class Sqlite3Engine(object):
|
|||
self._current_state_group_id += 1
|
||||
return self._current_state_group_id
|
||||
|
||||
@property
|
||||
def server_version(self):
|
||||
"""Gets a string giving the server version. For example: '3.22.0'
|
||||
|
||||
Returns:
|
||||
string
|
||||
"""
|
||||
return "%i.%i.%i" % self.module.sqlite_version_info
|
||||
|
||||
|
||||
# Following functions taken from: https://github.com/coleifer/peewee
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue