mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
pamhyr: Rename '_sql_*' function to '_db_*'.
This commit is contained in:
1 parent
8d92fbbdac
commit
ea2dbfba3e
23 files changed
+186
-186
No files matched your search
@@ -35,7 +35,7 @@ class Friction(SQLSubModel):
|
||||
self._end_strickler = None
|
||||
|
||||
@classmethod
|
||||
def _sql_create(cls, execute):
|
||||
def _db_create(cls, execute):
|
||||
execute("""
|
||||
CREATE TABLE friction(
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
@@ -54,11 +54,11 @@ class Friction(SQLSubModel):
|
||||
return True
|
||||
|
||||
@classmethod
|
||||
def _sql_update(cls, execute, version):
|
||||
def _db_update(cls, execute, version):
|
||||
return True
|
||||
|
||||
@classmethod
|
||||
def _sql_load(cls, execute, data=None):
|
||||
def _db_load(cls, execute, data=None):
|
||||
new = []
|
||||
reach = data["parent"] # Reach object
|
||||
status = data["status"]
|
||||
@@ -88,7 +88,7 @@ class Friction(SQLSubModel):
|
||||
|
||||
yield ind, sec
|
||||
|
||||
def _sql_save(self, execute, data=None):
|
||||
def _db_save(self, execute, data=None):
|
||||
ind = data["ind"]
|
||||
execute(
|
||||
"INSERT INTO " +
|
||||
|
||||
Reference in new issue
Block a user