|
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) |
|
Definition at line 10 of file tag.py.
◆ __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.
◆ 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.
◆ auto_time
aestate.dbs._mysql.tag.baseTag.auto_time |
◆ autoField
aestate.dbs._mysql.tag.baseTag.autoField |
◆ comment
aestate.dbs._mysql.tag.baseTag.comment |
◆ d_point
aestate.dbs._mysql.tag.baseTag.d_point |
◆ default
aestate.dbs._mysql.tag.baseTag.default |
◆ is_null
aestate.dbs._mysql.tag.baseTag.is_null |
◆ length
aestate.dbs._mysql.tag.baseTag.length |
◆ name
aestate.dbs._mysql.tag.baseTag.name |
◆ primary_key
aestate.dbs._mysql.tag.baseTag.primary_key |
◆ t_type
aestate.dbs._mysql.tag.baseTag.t_type |
◆ update_auto_time
aestate.dbs._mysql.tag.baseTag.update_auto_time |
The documentation for this class was generated from the following file: