sql = 'select * from some_table where text_column in :some_list'
db.query(sql, some_list=['abc', 'bcd'])
Hi,the code above is a convenient and consistent query api for in clause.
However,records(or sqlalchemy) has no support for this.
And now I have to write ugly code below.
some_list = ['abc', 'bcd']
ugly_list = ["'{}'".format(i) for i in some_list]
sql = 'select * from some_table where text_column in ({})'.format(', '.join(ugly_list))
db.query(sql)
So I wonder whether records can add support for this.
Hi,the code above is a convenient and consistent query api for in clause.
However,records(or sqlalchemy) has no support for this. And now I have to write ugly code below.
So I wonder whether records can add support for this.