如何 select peewee 中的虚拟列?

How to select dummy column in peewee?

怎么做

select 'blah' as dummycolumn

在 peewee??

我试过了

MyTable.select('blah')

但它不起作用

MyModel.select(
    MyModel.some_field.alias('another_name'),
    Value('a string literal').alias('a_string'),
    Value(12345).alias('a_number'))