MCPcopy Create free account
hub / github.com/Syncplay/syncplay / _createSchema

Method _createSchema

syncplay/server.py:393–395  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

391 self._createSchema().addCallback(self.loadRooms)
392
393 def _createSchema(self):
394 initQuery = 'create table if not exists persistent_rooms (name STRING PRIMARY KEY, playlist STRING, playlistIndex INTEGER, position REAL, lastSavedUpdate INTEGER)'
395 return self._connection.runQuery(initQuery)
396
397 def saveRoom(self, name, playlist, playlistIndex, position, lastUpdate):
398 content = (name, playlist, playlistIndex, position, lastUpdate)

Callers 1

connectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected