Beispiel #1
0
 def save(self):
     args = (self.username, self.title, self.content, datetime.now())
     dbutil.execute_commit(self.SQL_MESSAGE_INSERT, args)
 def delete_by_id(cls, id):
     dbutil.execute_commit(cls.SQL_USER_DELETE, (id, ))
 def delete(self):
     dbutil.execute_commit(self.SQL_USER_DELETE, (self.id, ))
 def save(self):
     args = (self.username, self.age, self.tel, self.password)
     dbutil.execute_commit(self.SQL_USER_CREATE, args)
 def modify(self):
     args = (self.username, self.age, self.tel, self.id)
     dbutil.execute_commit(self.SQL_USER_MODIFY, args)
 def modify_password(self):
     args = (self.password, self.id)
     dbutil.execute_commit(self.SQL_USER_MODIFY_PASSWORD, args)
 def delete(self):
     args = (self.id)
     print(args)
     dbutil.execute_commit(self.SQL_USER_DELETE, args)
Beispiel #8
0
def delete_message(username, title, content):
    dbutil.execute_commit(SQL_Delete, (username, title, content))
Beispiel #9
0
def update_message(username, title, content):
    dbutil.execute_commit(SQL_Update, (title, content, username))
Beispiel #10
0
def save_message(username, title, content):
    dbutil.execute_commit(SQL_Insert, (username, title, content))