Creating month wise tables in Diesel


#1

I have a month wise sharded table in database

table_jan
table_feb

I want to query it using Diesel .

For now I have created multiple tables

table! { table_jan }
table! { table_feb }

But in my query function I somehow want to refer the module dynamically

table_{dynamic_month_value}::table.filter(table_{dynamic_month_value}::id.eq(1))