Close scratch iteration 009 grouped policy and VEX audit repairs
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using StellaOps.Infrastructure.Postgres.Migrations;
|
||||
using StellaOps.Infrastructure.Postgres.Options;
|
||||
using StellaOps.VexHub.Core;
|
||||
using StellaOps.VexHub.Persistence.Postgres;
|
||||
@@ -22,6 +23,13 @@ public static class VexHubPersistenceExtensions
|
||||
services.Configure<PostgresOptions>(configuration.GetSection("Postgres"));
|
||||
|
||||
services.AddSingleton<VexHubDataSource>();
|
||||
services.AddStartupMigrations(
|
||||
VexHubDataSource.DefaultSchemaName,
|
||||
"VexHub.Persistence",
|
||||
typeof(VexHubDataSource).Assembly);
|
||||
services.AddScoped<IVexSourceRepository, PostgresVexSourceRepository>();
|
||||
services.AddScoped<IVexConflictRepository, PostgresVexConflictRepository>();
|
||||
services.AddScoped<IVexIngestionJobRepository, PostgresVexIngestionJobRepository>();
|
||||
services.AddScoped<IVexStatementRepository, PostgresVexStatementRepository>();
|
||||
services.AddScoped<IVexProvenanceRepository, PostgresVexProvenanceRepository>();
|
||||
|
||||
@@ -38,6 +46,13 @@ public static class VexHubPersistenceExtensions
|
||||
services.Configure(configureOptions);
|
||||
|
||||
services.AddSingleton<VexHubDataSource>();
|
||||
services.AddStartupMigrations(
|
||||
VexHubDataSource.DefaultSchemaName,
|
||||
"VexHub.Persistence",
|
||||
typeof(VexHubDataSource).Assembly);
|
||||
services.AddScoped<IVexSourceRepository, PostgresVexSourceRepository>();
|
||||
services.AddScoped<IVexConflictRepository, PostgresVexConflictRepository>();
|
||||
services.AddScoped<IVexIngestionJobRepository, PostgresVexIngestionJobRepository>();
|
||||
services.AddScoped<IVexStatementRepository, PostgresVexStatementRepository>();
|
||||
services.AddScoped<IVexProvenanceRepository, PostgresVexProvenanceRepository>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user