-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddress.py
45 lines (38 loc) · 1.09 KB
/
Address.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from DegJet import *
class Address(DegJet):
def __init__(self,host='localhost',user='doolsaz',password='22111357',database='021',port=3306,serverType='mySql'):
self.host=host
self.user=user
self.password=password
self.database=database
self.port=port
# self.serverType=serverType
def setUser(self,user):
self.user=user
def getUser(self):
return self.user
def setHost(self,user):
self.user=user
def getHost(self):
return self.user
def setDatabase(self, user):
self.user = user
def getDatabase(self):
return self.user
def setPort(self,user):
self.user=user
def getPort(self):
return self.user
def setType(self,serverType):
self.serverType = serverType
def getType(self):
return self.serverType
def getLocation(self):
temp={}
temp['host']=self.host
temp['user']=self.user
temp['password']=self.password
temp['port']=self.port
temp['database']=self.database
res=temp
return res