コード例 #1
0
ファイル: models.py プロジェクト: narastabbocchi/GLBackend
 def createTable(self):
     store = getStore()
     store.execute(self.createQuery)
     store.commit()
コード例 #2
0
ファイル: models.py プロジェクト: narastabbocchi/GLBackend
 def save(self):
     store = getStore()
     store.add(self)
     store.commit()
コード例 #3
0
ファイル: test_db.py プロジェクト: narastabbocchi/GLBackend
 def findtip(what):
     store = getStore()
     x = list(store.find(InternalTip, InternalTip.id == what))
     return x