Tanks, I do it in this way, but table engine only take charge of table and index, there is no engines for sequence or other schema object.
2015-04-11 0:02 GMT+08:00 Thomas Mueller <[email protected]>: > Hi, > > I think you would need to implement your own TableEngine (see org.h2.api). > > Regards, > Thomas > > > On Thursday, March 12, 2015, wener <[email protected]> wrote: > >> >> select * from user where name = 'wener' >> >> For this query, I can not direct choose MySQL host, I have to use my >> secondary index. >> The secondary index is build by fetching the mysql binlog. >> The index is used like a Map >> >> id = index[name] >> >> then, use this id to choose which mysql host I should route to. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "H2 Database" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/h2-database. >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "H2 Database" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/h2-database/peIjL4WWrk0/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/h2-database. > For more options, visit https://groups.google.com/d/optout. > -- Wener~~~~~~~~ -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
