Skip to content

Commit

Permalink
Merge pull request #707 from tusharad/master
Browse files Browse the repository at this point in the history
Changed documentation example of withDbModification function.
  • Loading branch information
LaurentRDC authored Jul 3, 2024
2 parents 42384c9 + 80cb8c9 commit c6a16b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion beam-core/Database/Beam/Schema/Tables.hs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ tableModification = runIdentity $
-- > db = defaultDbSettings `withDbModification`
-- > dbModification {
-- > -- Change default name "table1" to "Table_1". Change the name of "table1Field1" to "first_name"
-- > table1 = modifyTable (\_ -> "Table_1") (tableModification { table1Field1 = "first_name" }
-- > table1 = setEntityName "Table_1" <> modifyTableFields tableModification {
-- > table1Field1 = "first_name"
-- > }
-- > }
withDbModification :: forall db be entity
. Database be db
Expand Down

0 comments on commit c6a16b6

Please sign in to comment.