-
Notifications
You must be signed in to change notification settings - Fork 3
/
Log.py
29 lines (25 loc) · 854 Bytes
/
Log.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import datetime
class Log:
database = ""
database_host = ""
time = ""
timestamp = ""
statement = ""
query_time = 0
lock_time = 0
rows_sent = 0
rows_examined = 0
datetime_value = datetime.time(0,0)
def __init__(self, datetime="", database_host="", time="", database="", timestamp="", statement="",
query_time=0, lock_time=0, rows_sent=0, rows_examined=0, datetime_value=datetime.time(0,0)):
self.datetime = datetime
self.database_host = database_host
self.time = time
self.database = database
self.timestamp = timestamp
self.statement = statement
self.query_time = query_time
self.lock_time = lock_time
self.rows_sent = rows_sent
self.rows_examined = rows_examined
self.datetime_value = datetime_value