class DatabaseSetDao extends BaseDao {

    public DatabaseSet getDatabaseSetByName(String name) throws SQLException {
        String sql = "select id, name, db_type, strategy_source, class_name, group_id, update_user_no, update_time FROM databaseset WHERE name = '" + name + "' limit 1";
        List<DatabaseSet> list = this.queryBySql(sql, DatabaseSet.class);
        return CollectionUtils.isNotEmpty(list) ? list.get(0) : null;
    }

}