use of io.trino.plugin.raptor.legacy.metadata.ForMetadata in project trino by trinodb.
the class RaptorModule method createJdbi.
@ForMetadata
@Singleton
@Provides
public static Jdbi createJdbi(@ForMetadata ConnectionFactory connectionFactory, TypeManager typeManager) {
Jdbi dbi = Jdbi.create(connectionFactory).installPlugin(new SqlObjectPlugin()).registerRowMapper(new TableColumn.Mapper(typeManager)).registerRowMapper(new Distribution.Mapper(typeManager));
createTablesWithRetry(dbi);
return dbi;
}
Aggregations