{"repo":"obsidiansystems/beam-automigrate","free":true,"listed":false,"github":"https://github.com/obsidiansystems/beam-automigrate","clone":"git clone https://github.com/obsidiansystems/beam-automigrate.git","description":"Generated migrations for beam databases","language":"Haskell","stars":22,"topics":["database","haskell","beam","migration"],"license":"BSD-3-Clause","category":"databases-storage","readme_excerpt":"beam-automigrate ================ Automatic migrations for beam databases! Table of Contents ----------------- Table of Contents Getting started (User guide/reference) Deriving an AnnotatedDatabaseSettings Overriding the defaults of an AnnotatedDatabaseSettings Deriving a Schema Generating an automatic migration Current design (10 000ft overview) Deriving information from a DatabaseSettings Deriving information from an AnnotatedDatabaseSettings What is implemented Shortcomings and limitations Contributors Getting started (User guide/reference) ====================================== This example is a literate haskell source file. You can run it interactively with the following command: If you're using nix, you can enter a shell with the appropriate dependencies with the following command: From that nix-shell, you can run cabal repl readme . To run the example code, run main inside of the cabal repl. For a more examples, refer to the examples folder. Deriving an AnnotatedDatabaseSettings ------------------------------------- Deriving an AnnotatedDatabaseSettings for a Haskell database type is a matter of calling defaultAnnotatedDbSettings . For example, given: Then calling defaultAnnotatedDbSettings will yield: Where defaultDbSettings is the classic function from beam-core . Overriding the defaults of an AnnotatedDatabaseSettings --------------------------------------------------------- It is likely that the end user would like to attach extra meta-information to an AnnotatedDa","default_branch":null,"files":null,"tree":[],"storefront":"/r/obsidiansystems","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/obsidiansystems/beam-automigrate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}