Aestate
Public Member Functions | Public Attributes | List of all members
aestate.dbs._mysql.tag.baseTag Class Reference
Inheritance diagram for aestate.dbs._mysql.tag.baseTag:
Inheritance graph
Collaboration diagram for aestate.dbs._mysql.tag.baseTag:
Collaboration graph

Public Member Functions

def __init__ (self, name=None, length=None, d_point=None, t_type='varchar', is_null=False, primary_key=False, comment="", auto_field=False, auto_time=False, update_auto_time=False, default=None)
 
def get_field (self, name)
 
def set_field (self, name, value)
 
def get_table (self, bf)
 

Public Attributes

 update_auto_time
 
 default
 
 auto_time
 
 autoField
 
 comment
 
 primary_key
 
 is_null
 
 d_point
 
 name
 
 t_type
 
 length
 

Detailed Description

Definition at line 10 of file tag.py.

Constructor & Destructor Documentation

◆ __init__()

def aestate.dbs._mysql.tag.baseTag.__init__ (   self,
  name = None,
  length = None,
  d_point = None,
  t_type = 'varchar',
  is_null = False,
  primary_key = False,
  comment = "",
  auto_field = False,
  auto_time = False,
  update_auto_time = False,
  default = None 
)
:param name:字段名
:param length:长度
:param d_point:小数点
:param t_type:类型
:param is_null:允许为空
:param primary_key:键
:param comment:注释
:param auto_field:自增长键
:param auto_time:默认设置当前时间
:param update_auto_time:默认设置当前时间并根据当前时间更新
:param default:默认值

Definition at line 11 of file tag.py.

Member Function Documentation

◆ get_field()

def aestate.dbs._mysql.tag.baseTag.get_field (   self,
  name 
)
获得字段

Definition at line 70 of file tag.py.

◆ get_table()

def aestate.dbs._mysql.tag.baseTag.get_table (   self,
  bf 
)
获取表数据结构

Definition at line 82 of file tag.py.

◆ set_field()

def aestate.dbs._mysql.tag.baseTag.set_field (   self,
  name,
  value 
)
设置值

Definition at line 76 of file tag.py.

Member Data Documentation

◆ auto_time

aestate.dbs._mysql.tag.baseTag.auto_time

Definition at line 30 of file tag.py.

◆ autoField

aestate.dbs._mysql.tag.baseTag.autoField

Definition at line 34 of file tag.py.

◆ comment

aestate.dbs._mysql.tag.baseTag.comment

Definition at line 36 of file tag.py.

◆ d_point

aestate.dbs._mysql.tag.baseTag.d_point

Definition at line 42 of file tag.py.

◆ default

aestate.dbs._mysql.tag.baseTag.default

Definition at line 28 of file tag.py.

◆ is_null

aestate.dbs._mysql.tag.baseTag.is_null

Definition at line 40 of file tag.py.

◆ length

aestate.dbs._mysql.tag.baseTag.length

Definition at line 48 of file tag.py.

◆ name

aestate.dbs._mysql.tag.baseTag.name

Definition at line 44 of file tag.py.

◆ primary_key

aestate.dbs._mysql.tag.baseTag.primary_key

Definition at line 38 of file tag.py.

◆ t_type

aestate.dbs._mysql.tag.baseTag.t_type

Definition at line 46 of file tag.py.

◆ update_auto_time

aestate.dbs._mysql.tag.baseTag.update_auto_time

Definition at line 26 of file tag.py.


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