hpqtypes-extras-1.16.4.3: Extra utilities for hpqtypes library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Database.PostgreSQL.PQTypes.Model.PrimaryKey

Synopsis

Documentation

sqlAddPKUsing :: RawSQL () -> TableIndex -> RawSQL () Source #

Convert a unique index into a primary key. Main usage is to build a unique index concurrently first (so that its creation doesn't conflict with table updates on the modified table) and then convert it into a primary key using this function.