lib/simple/sql/reflection.rb in simple-sql-0.4.28 vs lib/simple/sql/reflection.rb in simple-sql-0.4.29
- old
+ new
@@ -39,10 +39,10 @@
def table_info(schema: "public")
recs = all <<~SQL, schema, into: Hash
SELECT table_schema || '.' || table_name AS name, *
FROM information_schema.tables
WHERE table_schema=$1
- SQL
+ SQL
records_by_attr(recs, :name)
end
def column_info(table_name)
@column_info ||= {}