hpqtypes-extras-1.8.0.0: Extra utilities for hpqtypes library

Safe HaskellNone
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.