peewee Documentation Release 1.0.0
languages dynamic python ruby static c c++ java >>> Category.create(name='java', path='languages.static.java') # last one... >>> Category.get(name='python').path 'languages.dynamic.python' You lambda q: [l.name for l in q] >>> show(Category.select().where(path__startswith='languages .dynamic')) [u'dynamic', u'python', u'ruby'] >>> show(Category.select().where(path__lmatch='*.static.c*') ) [u'c' [u'c', u'c++'] >>> show(Category.select().where(path__lmatch_text='(static | dynamic) & (p* | c*) & !cpp')) [u'python', u'c'] You can select subtrees, label indices, and more: >>> q = Category.select(['name'0 码力 | 101 页 | 163.20 KB | 1 年前3peewee Documentation Release 1.0.0
languages – dynamic * python * ruby – static * c * c++ * java >>> Category.create(name=’java’, path=’languages.static.java’) # last one... >>> Category.get(name=’python’).path ’languages.dynamic.python’ ges.dynamic’)) [u’dynamic’, u’python’, u’ruby’] >>> show(Category.select().where(path__lmatch=’*.static.c*’)) [u’c’, u’c++’] >>> show(Category.select().where(path__lmatch_text=’(static | dynamic) & (p* Category.select([’name’, lsubpath(’path’, -1, 1, ’leaf’)]) >>> for cat in q: ... cat.leaf languages dynamic static python ruby c cpp java >>> q = Category.select([lindex(’path’, ’static’, ’static_pos’)])0 码力 | 71 页 | 405.29 KB | 1 年前3peewee Documentation Release 2.10.2
read_count = IntegerField(default=0) In some instances it may make sense for the default value to be dynamic. A common scenario is using the current date and time. Peewee allows you to specify a function in HH:MM:SS. BareField The BareField class is intended to be used only with SQLite. Since SQLite uses dynamic typing and data-types are not enforced, it can be perfectly fine to declare fields without any data-type0 码力 | 275 页 | 276.96 KB | 1 年前3peewee Documentation Release 2.10.2
read_count = IntegerField(default=0) In some instances it may make sense for the default value to be dynamic. A common scenario is using the current date and time. Peewee allows you to specify a function in HH:MM:SS. BareField The BareField class is intended to be used only with SQLite. Since SQLite uses dynamic typing and data-types are not enforced, it can be perfectly fine to declare fields without any data-type0 码力 | 221 页 | 844.06 KB | 1 年前3peewee Documentation Release 3.0.0
read_count = IntegerField(default=0) In some instances it may make sense for the default value to be dynamic. A common scenario is using the current date and time. Peewee allows you to specify a function in HH:MM:SS. BareField The BareField class is intended to be used only with SQLite. Since SQLite uses dynamic typing and data-types are not enforced, it can be perfectly fine to declare fields without any data-type0 码力 | 319 页 | 361.50 KB | 1 年前3peewee Documentation Release 3.5.0
read_count = IntegerField(default=0) In some instances it may make sense for the default value to be dynamic. A common scenario is using the current date and time. Peewee allows you to specify a function in is_set(63) BareField The BareField class is intended to be used only with SQLite. Since SQLite uses dynamic typing and data-types are not enforced, it can be perfectly fine to declare fields without any data-type0 码力 | 347 页 | 380.80 KB | 1 年前3peewee Documentation Release 3.4.0
read_count = IntegerField(default=0) In some instances it may make sense for the default value to be dynamic. A common scenario is using the current date and time. Peewee allows you to specify a function in is_set(63) BareField The BareField class is intended to be used only with SQLite. Since SQLite uses dynamic typing and data-types are not enforced, it can be perfectly fine to declare fields without any data-type0 码力 | 349 页 | 382.34 KB | 1 年前3peewee Documentation Release 3.1.0
read_count = IntegerField(default=0) In some instances it may make sense for the default value to be dynamic. A common scenario is using the current date and time. Peewee allows you to specify a function in is_set(63) BareField The BareField class is intended to be used only with SQLite. Since SQLite uses dynamic typing and data-types are not enforced, it can be perfectly fine to declare fields without any data-type0 码力 | 332 页 | 370.77 KB | 1 年前3peewee Documentation Release 3.5.0
peewee Documentation, Release 3.5.0 In some instances it may make sense for the default value to be dynamic. A common scenario is using the current date and time. Peewee allows you to specify a function in is_set(63) BareField The BareField class is intended to be used only with SQLite. Since SQLite uses dynamic typing and data-types are not enforced, it can be perfectly fine to declare fields without any data-type0 码力 | 282 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.3.0
read_count = IntegerField(default=0) In some instances it may make sense for the default value to be dynamic. A common scenario is using the current date and time. Peewee allows you to specify a function in is_set(63) BareField The BareField class is intended to be used only with SQLite. Since SQLite uses dynamic typing and data-types are not enforced, it can be perfectly fine to declare fields without any data-type0 码力 | 280 页 | 1.02 MB | 1 年前3
共 13 条
- 1
- 2