Entry tags:
I wonder do I really need an ORM...
def dropConstraint(table: String, constraint: String): Unit =
update(s"alter table $table drop constraint if exists $constraint")
def dropAllFkeys(): Unit = {
val found =
select("constraint_name, table_name from information_schema.table_constraints where constraint_schema='public' and constraint_type = 'FOREIGN KEY'") strings
for ((k::t::_) <- found) dropConstraint(t, k)
}