16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/llm_cost_tracker/ledger/schema/provider_invoices.rb', line 16
def current_schema_errors
connection = LlmCostTracker::Call.connection
Adapter.ensure_supported!(connection)
table_name = LlmCostTracker::ProviderInvoice.table_name
return ["#{table_name} table is missing"] unless connection.data_source_exists?(table_name)
errors = []
errors.concat(column_errors)
errors.concat(metadata_type_errors(connection))
errors.concat(index_errors(connection, table_name))
errors
end
|