How to execute direct SQL statements on a db shard?

33 views
Skip to first unread message

luca.fin...@centervue.com

unread,
Jul 22, 2015, 12:36:07 AM7/22/15
to chica...@googlegroups.com
Hi all, 
how can I execute direct SQL statements over a db shard?
I made some very quick and easy tests but it seems to me that it is not possible to, say, execute something like this:

boss_db:execute("select * from sharded_table"),

as boss_db apparently always performs the query on the 'default' database. 

Any hints on how to do this? 
Thank you in advance
Luca.
Reply all
Reply to author
Forward
0 new messages