Aestate
Public Member Functions | Public Attributes | List of all members
aestate.work.Config.MySqlConfig Class Reference
Inheritance diagram for aestate.work.Config.MySqlConfig:
Inheritance graph
Collaboration diagram for aestate.work.Config.MySqlConfig:
Collaboration graph

Public Member Functions

def __init__ (self, db_type, *args, **kwargs)
 
def get (self)
 
def set_field (self, key, value)
 
def get_field (self, name)
 
def get_dict (self)
 
def get_json (self, bf=False)
 

Public Attributes

 creator
 
 opera
 
 sqlFields
 
 kw
 
 adapter
 

Detailed Description

配置类:
    默认必须携带操作数据库所需的参数:
        - host:数据库地址
        - port:端口
        - database:数据库名
        - user:用户名
        - password:密码
        - charset:编码默认utf8
        - conf:其他配置

Definition at line 15 of file Config.py.

Constructor & Destructor Documentation

◆ __init__()

def aestate.work.Config.MySqlConfig.__init__ (   self,
  db_type,
args,
**  kwargs 
)
可用于mysql的示例参数
:param host:数据库地址
:param port:端口
:param database:数据库名
:param user:用户名
:param password:密码
:param charset:编码默认utf8
:param creator:创建者

Definition at line 28 of file Config.py.

Member Function Documentation

◆ get()

def aestate.work.Config.MySqlConfig.get (   self)
获取当前配置类
:return:

Definition at line 52 of file Config.py.

◆ get_dict()

def aestate.work.Config.MySqlConfig.get_dict (   self)
将配置类转转字典
:return:

Definition at line 78 of file Config.py.

Here is the caller graph for this function:

◆ get_field()

def aestate.work.Config.MySqlConfig.get_field (   self,
  name 
)
获取字段
:param name:
:return:

Definition at line 68 of file Config.py.

◆ get_json()

def aestate.work.Config.MySqlConfig.get_json (   self,
  bf = False 
)
将配置类转json
:return:

Definition at line 85 of file Config.py.

Here is the call graph for this function:

◆ set_field()

def aestate.work.Config.MySqlConfig.set_field (   self,
  key,
  value 
)
设置字段
:param key:键
:param value:值
:return:

Definition at line 59 of file Config.py.

Member Data Documentation

◆ adapter

aestate.work.Config.MySqlConfig.adapter

Definition at line 49 of file Config.py.

◆ creator

aestate.work.Config.MySqlConfig.creator

Definition at line 43 of file Config.py.

◆ kw

aestate.work.Config.MySqlConfig.kw

Definition at line 46 of file Config.py.

◆ opera

aestate.work.Config.MySqlConfig.opera

Definition at line 44 of file Config.py.

◆ sqlFields

aestate.work.Config.MySqlConfig.sqlFields

Definition at line 45 of file Config.py.


The documentation for this class was generated from the following file: