peewee Documentation Release 1.0.0Category instances. Let’s use the following data-set: languages dynamic python ruby static c c++ java >>> Category.create(name='java', path='languages.static.java') # last one... >>> Category.get(name='python') [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* | c*) & !cpp')) [u'python'0 码力 | 101 页 | 163.20 KB | 1 年前3
peewee Documentation
Release 1.0.0instances. Let’s use the following data-set: • languages – dynamic * python * ruby – static * c * c++ * java >>> Category.create(name=’java’, path=’languages.static.java’) # last one... >>> Category [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* | c*) & !cpp’)) [u’python’0 码力 | 71 页 | 405.29 KB | 1 年前3
共 2 条
- 1













