mirror of
https://github.com/actiontech/dble.git
synced 2026-01-23 13:28:28 -06:00
20 lines
501 B
Java
20 lines
501 B
Java
package io.mycat.route;
|
|
|
|
import io.mycat.cache.LayerCachePool;
|
|
import io.mycat.config.model.SchemaConfig;
|
|
import io.mycat.config.model.SystemConfig;
|
|
import io.mycat.server.ServerConnection;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
/**
|
|
* 路由策略接口
|
|
* @author wang.dw
|
|
*
|
|
*/
|
|
public interface RouteStrategy {
|
|
public RouteResultset route(SystemConfig sysConfig,
|
|
SchemaConfig schema,int sqlType, String origSQL, String charset, ServerConnection sc, LayerCachePool cachePool)
|
|
throws SQLException;
|
|
}
|