Open canuran opened 1 year ago
Such as select name from user /* shard_id=1 */ where name like 'can%', the shard_id comment is to tell the database proxy how to route to the sharded database.
select name from user /* shard_id=1 */ where name like 'can%'
Suggest: db.SelectFrom(User).AddFrag(Frag("/* shard_id=1 */").BeforeWhere()).Where(...)....
db.SelectFrom(User).AddFrag(Frag("/* shard_id=1 */").BeforeWhere()).Where(...)...
Such as
select name from user /* shard_id=1 */ where name like 'can%'
, the shard_id comment is to tell the database proxy how to route to the sharded database.Suggest:
db.SelectFrom(User).AddFrag(Frag("/* shard_id=1 */").BeforeWhere()).Where(...)...
.