Packages
Ecto PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum stats and more.
Current section
Files
Jump to
Current section
Files
lib/queries/missing_fk_constraints.ex
defmodule EctoPSQLExtras.MissingFkConstraints do
@behaviour EctoPSQLExtras
def info do
%{
title: "Lists columns likely to be foreign keys which don't have a foreign key constraint.",
index: 1,
order_by: [table: :asc],
columns: [
%{name: :table, type: :string},
%{name: :column_name, type: :string}
]
}
end
def query(_args \\ []) do
# placeholder
end
end