presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/metadata/DatabaseMetadataModule.java/DatabaseMetadataModule/setup
class DatabaseMetadataModule:    @Override
    protected void setup(Binder ignored)
    {
        install(installModuleIf(
                DatabaseConfig.class,
                config -> "mysql".equals(config.getDatabaseType()),
                binder -> {
                    binder.install(new MySqlDataSourceModule());
                    bindDaoSupplier(binder, ShardDao.class, MySqlShardDao.class);
                }));

        install(installModuleIf(
                DatabaseConfig.class,
                config -> "h2".equals(config.getDatabaseType()),
                binder -> {
                    binder.install(new H2EmbeddedDataSourceModule("metadata", ForMetadata.class));
                    bindDaoSupplier(binder, ShardDao.class, H2ShardDao.class);
                }));
    }