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

Public Member Functions

def __init__ (self, *args, **kwargs)
 
def get_conn (self)
 
def select (self, **kwargs)
 
def insert (self, many=False, **kwargs)
 
def update (self, **kwargs)
 
def delete (self, **kwargs)
 
- Public Member Functions inherited from aestate.opera.DBPool.pooled_db.PooledDB
def __init__ (self, creator, mincached=0, maxcached=0, maxshared=0, maxconnections=0, blocking=False, maxusage=None, setsession=None, reset=True, failures=None, ping=1, *args, **kwargs)
 
def steady_connection (self)
 
def connection (self, shareable=True)
 
def dedicated_connection (self)
 
def unshare (self, con)
 
def cache (self, con)
 
def close (self)
 
def __del__ (self)
 

Public Attributes

 POOL
 

Additional Inherited Members

- Static Public Attributes inherited from aestate.opera.DBPool.pooled_db.PooledDB
 version = __version__
 

Detailed Description

Definition at line 51 of file ExecuteSql.py.

Constructor & Destructor Documentation

◆ __init__()

def aestate.work.sql.ExecuteSql.Db_opera.__init__ (   self,
args,
**  kwargs 
)

Definition at line 52 of file ExecuteSql.py.

Member Function Documentation

◆ delete()

def aestate.work.sql.ExecuteSql.Db_opera.delete (   self,
**  kwargs 
)
执行删除语句
:param kwargs:包含所有参数:
    last_id:是否需要返回最后一行数据,默认False
    sql:处理过并加上%s的sql语句
    params:需要填充的字段

Definition at line 137 of file ExecuteSql.py.

Here is the call graph for this function:

◆ get_conn()

def aestate.work.sql.ExecuteSql.Db_opera.get_conn (   self)
获取数据库连接池
:return:

Definition at line 60 of file ExecuteSql.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ insert()

def aestate.work.sql.ExecuteSql.Db_opera.insert (   self,
  many = False,
**  kwargs 
)
执行插入语句
:param kwargs:包含所有参数:
    last_id:是否需要返回最后一行数据,默认False
    sql:处理过并加上%s的sql语句
    params:需要填充的字段
:param many:是否为多行执行

Definition at line 99 of file ExecuteSql.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ select()

def aestate.work.sql.ExecuteSql.Db_opera.select (   self,
**  kwargs 
)
查找多个
:param kwargs:包含所有参数:
    last_id:是否需要返回最后一行数据,默认False
    sql:处理过并加上%s的sql语句
    params:需要填充的字段
    print_sql:是否打印sql语句
:return:

Definition at line 67 of file ExecuteSql.py.

Here is the call graph for this function:

◆ update()

def aestate.work.sql.ExecuteSql.Db_opera.update (   self,
**  kwargs 
)
执行更新语句
:param kwargs:包含所有参数:
    last_id:是否需要返回最后一行数据,默认False
    sql:处理过并加上%s的sql语句
    params:需要填充的字段

Definition at line 127 of file ExecuteSql.py.

Here is the call graph for this function:

Member Data Documentation

◆ POOL

aestate.work.sql.ExecuteSql.Db_opera.POOL

Definition at line 54 of file ExecuteSql.py.


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