Search is not available for this dataset
id stringlengths 1 8 | text stringlengths 72 9.81M | addition_count int64 0 10k | commit_subject stringlengths 0 3.7k | deletion_count int64 0 8.43k | file_extension stringlengths 0 32 | lang stringlengths 1 94 | license stringclasses 10
values | repo_name stringlengths 9 59 |
|---|---|---|---|---|---|---|---|---|
10033950 | <NME> requirements.txt
<BEF> agate==1.6.0
bcrypt==3.1.2
blinker==1.4
boto==2.42.0
boto3==1.4.0
botocore==1.4.58
celery==4.0.2
cffi==1.8.3
billiard==3.5.0.2
blinker==1.4
boto==2.47.0
boto3==1.4.4
botocore==1.5.79
celery==4.0.2
certifi==2017.4.17
cffi==1.10.0
chardet==3.0.4
click==6.7
contextlib2==0.5.5
csvkit==1.0.2
dat... | 1 | Use full path to the supervisorctl | 1 | .txt | txt | mit | UrbanCCD-UChicago/plenario |
10033951 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 10 | Added number of associated census blocks to admin/edit_dataset_view | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033952 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 10 | Added number of associated census blocks to admin/edit_dataset_view | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033953 | <NME> views.py
<BEF> # TODO: this needs to be refactored. we've got views, utils, forms... this needs a lot of attention
import itertools
import re
from collections import namedtuple
from hashlib import md5
from io import StringIO
from urllib.parse import urlparse
import requests
from flask import Blueprint, flash, r... | 10 | Added number of associated census blocks to admin/edit_dataset_view | 1 | .py | py | mit | UrbanCCD-UChicago/plenario |
10033954 | <NME> CHANGELOG.md
<BEF> # eventful Changelog
## 0.1.1
## 0.1.0
Initial Hackage release of `eventful`. It is already fairly full-featured along
stream.
## 0.2.0
* Breaking change: Split up `EventStore` into `EventStoreWriter` and
`EventStoreReader`. There is now a ton of code sharing between reading from
ind... | 3 | Update CHANGELOG | 0 | .md | md | mit | jdreaver/eventful |
10033955 | <NME> TransferManager.hs
<BEF> {-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TemplateHaskell #-}
module Bank.ProcessManagers.TransferManager
( TransferManager (..)
, TransferManagerTransferData (..)
, TransferProcessManager
, transferProcessManager
) where
import Control.Lens
import Data.Maybe (isNothing)
i... | 4 | Change BankEvent constructor names | 4 | .hs | hs | mit | jdreaver/eventful |
10033956 | <NME> Sqlite.hs
<BEF> {-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
-- | Defines an Sqlite event store.
module Eventful.Store.Sqlite
( sqliteEventStoreWriter
, initializeSqliteEventStore
, module Eventful.Store.Class
, module Eventful.Store.Sql
, SqliteEve... | 1 | Re-export bus/store classes in implementations | 0 | .hs | hs | mit | jdreaver/eventful |
10033957 | <NME> counter-cli.hs
<BEF> -- | This program shows very basic usage of an event store. We create a very
-- simple Counter Projection/CommandHandler that holds an integer between 0 and 100.
-- The CLI asks the user for commands and applies them to an in-memory event
-- store.
module Main where
import Control.Concurren... | 1 | Rename getLatestProjection | 1 | .hs | hs | mit | jdreaver/eventful |
10033958 | <NME> MemorySpec.hs
<BEF> module Eventful.Store.MemorySpec (spec) where
import Control.Concurrent.STM
import Control.Monad.State.Strict
import Test.Hspec
import Eventful.Serializer
import Eventful.Store.Memory
import Eventful.TestHelpers
import MemoryTestImport
spec :: Spec
spec = do
describe "TVar memory event s... | 29 | Added MonadState store that includes other state | 0 | .hs | hs | mit | jdreaver/eventful |
10033959 | <NME> SerializerSpec.hs
<BEF> ADDFILE
<MSG> Created a serializer for event sum types
<DFF> @@ -0,0 +1,40 @@
+module Eventful.SerializerSpec (spec) where
+
+import Data.Dynamic
+import GHC.Generics
+import Test.Hspec
+
+import Eventful.Serializer
+
+spec :: Spec
+spec = do
+ describe "EventSumType" $ do
+ it "can s... | 40 | Created a serializer for event sum types | 0 | .hs | hs | mit | jdreaver/eventful |
10033960 | <NME> CustomerAccounts.hs
<BEF> module Bank.ReadModels.CustomerAccounts
( CustomerAccounts (..)
, getCustomerAccountsFromName
, customerAccountsProjection
) where
import Data.Map.Strict (Map)
import qualified Data.Map.Strict as Map
import Data.Maybe (fromMaybe, mapMaybe)
import Control.Lens
import Data.Map.Str... | 16 | Clean up bank example business logic | 13 | .hs | hs | mit | jdreaver/eventful |
10033961 | <NME> Store.hs
<BEF> {-# LANGUAGE RecordWildCards #-}
module Bank.CLI.Store
( runDB
, cliEventStore
, cliGlobalStreamEventStore
, printJSONPretty
) where
import Control.Monad.IO.Class (MonadIO (..))
import Data.Aeson
import Data.Aeson.Encode.Pretty
import qualified Data.ByteString.Lazy.Char8 as BSL
import D... | 17 | Update bank example for EventStore split | 14 | .hs | hs | mit | jdreaver/eventful |
10033962 | <NME> EventStore.lhs
<BEF> <!--- -*- mode: Markdown;-*- -->
# Event Stores
Using events to change state is no good unless we can actually persist the
events somewhere. In `eventful`, we do that using
an
[EventStore](https://hackage.haskell.org/package/eventful-core/docs/Eventful-Store-Class.html#t:EventStore).
Before... | 1 | Fix for a trivial mistake | 1 | .lhs | lhs | mit | jdreaver/eventful |
10033963 | <NME> Store.hs
<BEF> ADDFILE
<MSG> Rename library to eventful
<DFF> @@ -0,0 +1,7 @@
+module Eventful.Store
+ ( module X
+ ) where
+
+import Eventful.Store.Class as X
+import Eventful.Store.Memory as X
+import Eventful.Store.Sqlite as X
| 7 | Rename library to eventful | 0 | .hs | hs | mit | jdreaver/eventful |
10033964 | <NME> Memory.hs
<BEF> {-# LANGUAGE FlexibleContexts #-}
module Eventful.Store.Memory
( tvarEventStoreReader
, tvarEventStoreWriter
, tvarGlobalEventStoreReader
, stateEventStoreReader
, stateEventStoreWriter
, stateGlobalEventStoreReader
, embeddedStateEventStoreReader
, embeddedStateEventStoreWriter
... | 20 | Optimize global memory event stores | 25 | .hs | hs | mit | jdreaver/eventful |
10033965 | <NME> MemorySpec.hs
<BEF> module Eventful.Store.MemorySpec (spec) where
import Control.Concurrent.STM
import Control.Monad.State.Strict
import Test.Hspec
import Eventful.Serializer
import Eventful.Store.Memory
spec :: Spec
spec = do
describe "TVar memory event store" $ do
eventStoreSpec makeStore (const atomic... | 8 | Merge branch 'master' into bank-example | 3 | .hs | hs | mit | jdreaver/eventful |
10033966 | <NME> MemorySpec.hs
<BEF> module Eventful.Store.MemorySpec (spec) where
import Control.Concurrent.STM
import Test.Hspec
import Eventful.Serializer
import Eventful.Store.Memory
import Eventful.TestHelpers
spec :: Spec
spec = do
describe "TVar memory event store with Dynamic serialized type" $ do
eventStoreSpec ... | 25 | Added MonadState in-memory event store | 14 | .hs | hs | mit | jdreaver/eventful |
10033967 | <NME> Class.hs
<BEF> {-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
, GloballyOrderedEventStore (..)
, ExpectedVersion (..)
, EventWriteError (..)
, getLatestProjection
, commandStoredAggregate
-- * Utility types
, StoredEvent (..)
, GloballyOrderedEv... | 0 | Move stuff out of Eventful.Store.Class | 45 | .hs | hs | mit | jdreaver/eventful |
10033968 | <NME> Class.hs
<BEF> {-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
module Eventful.Store.Class
( -- * EventStore
EventStoreReader (..)
, EventStoreWriter ... | 2 | Remove dependency on persisent in eventful-core | 4 | .hs | hs | mit | jdreaver/eventful |
10033969 | <NME> SerializerSpec.hs
<BEF> ADDFILE
<MSG> Merge branch 'master' into bank-example
<DFF> @@ -0,0 +1,40 @@
+module Eventful.SerializerSpec (spec) where
+
+import Data.Dynamic
+import GHC.Generics
+import Test.Hspec
+
+import Eventful.Serializer
+
+spec :: Spec
+spec = do
+ describe "EventSumType" $ do
+ it "can se... | 40 | Merge branch 'master' into bank-example | 0 | .hs | hs | mit | jdreaver/eventful |
10033970 | <NME> Queries.hs
<BEF> {-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE TypeFamilies #-}
module Eventful.Store.Queries
( QueryRange (..)
, QueryStart (..)
, QueryLimit (..)
, allEvents
, eventsUntil
, eventsStartingAt
, eventsStartingAtUntil
... | 0 | Split up and generalize EventStore | 12 | .hs | hs | mit | jdreaver/eventful |
10033971 | <NME> ChefTodoList.hs
<BEF> {-# LANGUAGE ViewPatterns #-}
module Cafe.ChefTodoList
( chefTodoListMain
) where
import Control.Monad (forM_, unless)
import Control.Monad.Logger (runNoLoggingT)
import Data.List (foldl')
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Maybe (catMaybes, mapMaybe)
im... | 1 | Fix chef's todo list not refreshing when empty | 0 | .hs | hs | mit | jdreaver/eventful |
10033972 | <NME> ChefTodoList.hs
<BEF> {-# LANGUAGE ViewPatterns #-}
module Cafe.ChefTodoList
( chefTodoListMain
) where
import Data.List (foldl')
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Maybe (mapMaybe)
import Data.Monoid ((<>))
import Data.Text (pack)
import Database.Persist.Sql
import Data.Text... | 7 | Better printing in cafe chef todo list | 5 | .hs | hs | mit | jdreaver/eventful |
10033973 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, CounterCommandHandler
, counterCommandHandler
, CounterEve... | 66 | Added GloballyOrderedProjectionCache | 7 | .hs | hs | mit | jdreaver/eventful |
10033974 | <NME> counter-cli.hs
<BEF> -- | This program shows very basic usage of an event store. We create a very
-- simple Counter Projection/CommandHandler that holds an integer between 0 and 100.
-- The CLI asks the user for commands and applies them to an in-memory event
-- store.
module Main where
import Control.Concurren... | 1 | Add ExpectedVersion when writing events | 1 | .hs | hs | mit | jdreaver/eventful |
10033975 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, CounterCommandHandler
, c... | 18 | Further simplified TestHelpers store runners | 19 | .hs | hs | mit | jdreaver/eventful |
10033976 | <NME> introduction.rst
<BEF> Introduction
============
``eventful`` is a Haskell library for building event sourced applications.
What is Event Sourcing?
=======================
At its core, event sourcing is the following: instead of simply storing the
current state of your application, you store a sequence of stat... | 2 | Fix intro sub-section heading nesting | 2 | .rst | rst | mit | jdreaver/eventful |
10033977 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, CounterCommandHandler
, c... | 13 | Rename AggregateId to ProjectionId | 13 | .hs | hs | mit | jdreaver/eventful |
10033978 | <NME> SqliteSpec.hs
<BEF> module Eventful.Store.SqliteSpec (spec) where
import Database.Persist.Sqlite
import Test.Hspec
import Eventful.Store.Sqlite
import Eventful.TestHelpers
spec :: Spec
spec = do
describe "Sqlite event store" $ do
eventStoreSpec sqliteStoreRunner
describe "Sqlite event store" $ do
... | 9 | Fix mass insertion of events in sqlite | 0 | .hs | hs | mit | jdreaver/eventful |
10033979 | <NME> PostgresqlSpec.hs
<BEF> {-# LANGUAGE OverloadedStrings #-}
module Eventful.Store.PostgresqlSpec (spec) where
import Control.Monad.Reader (ask)
import Data.Monoid ((<>))
import Data.Text (Text, intercalate)
import Database.Persist.Postgresql
import Test.Hspec
import Eventful.Store.Postgresql
import Eventful.Tes... | 28 | Merge pull request #18 from concert/postgres_test_env | 6 | .hs | hs | mit | jdreaver/eventful |
10033980 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, CounterCommandHandler
, c... | 42 | Scrap your type classes on EventStore | 36 | .hs | hs | mit | jdreaver/eventful |
10033981 | <NME> Memory.hs
<BEF> module Eventful.ReadModel.Memory
( memoryReadModel
) where
import Control.Concurrent.STM
import Control.Monad.IO.Class
import Safe (maximumDef)
import Eventful.ReadModel.Class
import Eventful.Projection
import Eventful.ProjectionMap
import Eventful.ReadModel.Class
import Eventful.Store
data... | 1 | Split Serializable into its own module | 0 | .hs | hs | mit | jdreaver/eventful |
10033982 | <NME> Json.hs
<BEF> ADDFILE
<MSG> Fix Account JSON in bank example
<DFF> @@ -0,0 +1,30 @@
+-- | Utilities for JSON serialization
+
+module Bank.Json
+ ( unPrefixLower
+ ) where
+
+import Data.Aeson
+import Data.Aeson.TH
+import Data.Char (toLower)
+import Data.Monoid ((<>))
+
+-- | Aeson Options that match FrontRow ... | 30 | Fix Account JSON in bank example | 0 | .hs | hs | mit | jdreaver/eventful |
10033983 | <NME> Memory.hs
<BEF> ADDFILE
<MSG> Created in-memory read model
<DFF> @@ -0,0 +1,39 @@
+module EventSourcing.ReadModel.Memory
+ ( MemoryReadModel (..)
+ , memoryReadModel
+ , projectionMemoryReadModel
+ ) where
+
+import Control.Concurrent.STM
+import Control.Monad.IO.Class
+
+import EventSourcing.Projection
+imp... | 39 | Created in-memory read model | 0 | .hs | hs | mit | jdreaver/eventful |
10033984 | <NME> run-tests-docker.sh
<BEF> #!/usr/bin/env bash
set -eux;
# Spins up a docker container to run postgres tests
if [ ! "$(docker ps -q -f name=eventful_test_pg)" ]; then
if [ "$(docker ps -aq -f status=exited -f name=eventful_test_pg)" ]; then
docker rm eventful_test_pg
fi
docker run --name eventful_test... | 16 | Add Docker container for DynamoDB tests | 4 | .sh | sh | mit | jdreaver/eventful |
10033985 | <NME> CLI.hs
<BEF> {-# LANGUAGE RecordWildCards #-}
( bankCLIMain
) where
import Control.Monad.Logger (runNoLoggingT)
import Data.Text (pack)
import Database.Persist.Sqlite
import Database.Persist.Sqlite
import Eventful.Store.Sqlite
import Bank.CLI.Options
import Bank.CLI.RunCommand
Options{..} <- runOptions... | 4 | Fix leaving behind sqlite WAL file in bank example | 5 | .hs | hs | mit | jdreaver/eventful |
10033986 | <NME> Sqlite.hs
<BEF> {-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
-- | Defines an Sqlite event store.
module Eventful.Store.Sqlite
( sqliteEventStoreWriter
, initializeSqliteEventStore
, module Eventful.Store.Class
, module Eventful.Store.Sql
) where
im... | 1 | Remove redundant "getEventsRaw" | 2 | .hs | hs | mit | jdreaver/eventful |
10033987 | <NME> Projection.hs
<BEF> {-# LANGUAGE RecordWildCards #-}
module Eventful.Projection
( Projection (..)
, latestProjection
, allProjections
, StreamProjection (..)
, VersionedStreamProjection
, GlobalStreamProjection
, streamProjection
, versionedStreamProjection
, globalStreamProjection
, streamPr... | 1 | Small doc typo | 1 | .hs | hs | mit | jdreaver/eventful |
10033988 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, CounterCommandHandler
, c... | 37 | Created serialized event store wrapper | 42 | .hs | hs | mit | jdreaver/eventful |
10033989 | <NME> Store.hs
<BEF> module Bank.CLI.Store
( runDB
, cliEventStore
, cliEventStoreWriter
, cliGlobalEventStoreReader
, printJSONPretty
) where
import Data.Aeson
import Data.Aeson.Encode.Pretty
import qualified Data.ByteString.Lazy.Char8 as BSL
import Database.Persist.Sqlite
import Eventful
import Eventful... | 8 | Created GloballyOrderedProjection | 3 | .hs | hs | mit | jdreaver/eventful |
10033990 | <NME> TransferManager.hs
<BEF> {-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TemplateHaskell #-}
module Bank.ProcessManagers.TransferManager
( TransferManager (..)
, TransferManagerTransferData (..)
, TransferProcessManager
, transferProcessManager
, transferManagerRouter
) where
import Control.Lens
impor... | 25 | ProcessManager more like read model w/ commands | 41 | .hs | hs | mit | jdreaver/eventful |
10033991 | <NME> RunCommand.hs
<BEF> module Bank.CLI.RunCommand
( runCLICommand
) where
import Control.Monad (void)
import Database.Persist.Sqlite
import Eventful
import Bank.Models
import Bank.CLI.Options
import Bank.CLI.Store
import Bank.ReadModels.CustomerAccounts
runCLICommand :: ConnectionPool -> CLICommand -> IO ()
... | 2 | Add system to filter EventStore query results | 2 | .hs | hs | mit | jdreaver/eventful |
10033992 | <NME> DynamoJSONSpec.hs
<BEF> ADDFILE
<MSG> Serialize DynamoDB values to aeson's Value
<DFF> @@ -0,0 +1,44 @@
+{-# OPTIONS_GHC -fno-warn-orphans #-}
+
+module Eventful.Store.DynamoDB.DynamoJSONSpec (spec) where
+
+import Data.Aeson
+import qualified Data.HashMap.Strict as HM
+import qualified Data.Vector as V
+import ... | 44 | Serialize DynamoDB values to aeson's Value | 0 | .hs | hs | mit | jdreaver/eventful |
10033993 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, CounterCommandHandler
, c... | 41 | Fix tests for postgresql store | 17 | .hs | hs | mit | jdreaver/eventful |
10033994 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, CounterCommandHandler
, c... | 36 | Added tests for MonadState ProjectionCache | 0 | .hs | hs | mit | jdreaver/eventful |
10033995 | <NME> Types.hs
<BEF> ADDFILE
<MSG> Started creating ProjectionCache
<DFF> @@ -0,0 +1,92 @@
+{-# LANGUAGE RankNTypes #-}
+{-# LANGUAGE RecordWildCards #-}
+
+module Eventful.ProjectionCache.Types
+ ( ProjectionCache (..)
+ , runProjectionCacheUsing
+ , serializedProjectionCache
+ , getLatestProjectionWithCache
+ ,... | 92 | Started creating ProjectionCache | 0 | .hs | hs | mit | jdreaver/eventful |
10033996 | <NME> Internal.hs
<BEF> ADDFILE
<MSG> Created a common module between frontend/backend
<DFF> @@ -0,0 +1,28 @@
+module EventSourcing.Store.Sqlite.Internal
+ ( JSONString
+ ) where
+
+import Data.ByteString
+import Data.ByteString.Lazy (fromStrict, toStrict)
+import Database.Persist
+import Database.Persist.Sql
+
+imp... | 28 | Created a common module between frontend/backend | 0 | .hs | hs | mit | jdreaver/eventful |
10033997 | <NME> MemorySnapshot.hs
<BEF> ADDFILE
<MSG> Made MemorySnapshotStore
<DFF> @@ -0,0 +1,51 @@
+module EventSourcing.Store.MemorySnapshot
+ ( MemorySnapshotStore
+ , memorySnapshotStore
+ ) where
+
+import Control.Concurrent.STM
+import Control.Monad.IO.Class
+import Data.Map.Strict (Map)
+import qualified Data.Map.St... | 51 | Made MemorySnapshotStore | 0 | .hs | hs | mit | jdreaver/eventful |
10033998 | <NME> Sqlite.hs
<BEF> {-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
-- | Defines an Sqlite event store.
module Eventful.Store.Sqlite
( sqliteEventStoreWriter
, initializeSqliteEventStore
, module Eventful.Store.Class
, module Eventful.Store.Sql
) where
im... | 4 | Added many more haddock comments | 0 | .hs | hs | mit | jdreaver/eventful |
10033999 | <NME> counter-cli.hs
<BEF> -- | This program shows very basic usage of an event store. We create a very
-- simple Counter Projection/CommandHandler that holds an integer between 0 and 100.
-- The CLI asks the user for commands and applies them to an in-memory event
-- store.
module Main where
import Control.Concurren... | 1 | Merge pull request #10 from jdreaver/generic-queries | 1 | .hs | hs | mit | jdreaver/eventful |
10034000 | <NME> README.md
<BEF> # Eventful: Haskell Event Sourcing + CQRS Library
built using event sourcing.
## Documentation
The main documentation is [here](https://eventful.readthedocs.io).
## Examples
See the [examples](./examples) directory for some example programs.
<MSG> Add note to README
<DFF> @@ -1,1 +1,5 @@
# ... | 4 | Add note to README | 0 | .md | md | mit | jdreaver/eventful |
10034001 | <NME> ChefTodoList.hs
<BEF> {-# LANGUAGE ViewPatterns #-}
( chefTodoListMain
) where
import Control.Concurrent (threadDelay)
import Control.Monad (forM_, unless)
import Control.Monad.IO.Class (liftIO)
import Control.Monad.Logger (runNoLoggingT)
import Data.List (foldl')
import Data.Map (Map)
import Data.Map (Map)
... | 16 | Created general polling read model function | 13 | .hs | hs | mit | jdreaver/eventful |
10034002 | <NME> counter-cli.hs
<BEF> -- | This program shows very basic usage of an event store. We create a very
-- simple Counter Projection/CommandHandler that holds an integer between 0 and 100.
-- The CLI asks the user for commands and applies them to an in-memory event
-- store.
module Main where
import Control.Concurren... | 3 | Replace Serializable class with Serializer type | 2 | .hs | hs | mit | jdreaver/eventful |
10034003 | <NME> MemorySpec.hs
<BEF> module Eventful.ProjectionCache.MemorySpec (spec) where
import Control.Monad.State.Strict
import Test.Hspec
import Eventful.ProjectionCache.Memory
import Eventful.Store.Memory
import Eventful.TestHelpers
import MemoryTestImport
spec :: Spec
spec = do
describe "MonadState embedded memory ... | 13 | Created TVar ProjectionCache | 0 | .hs | hs | mit | jdreaver/eventful |
10034004 | <NME> ChefTodoList.hs
<BEF> {-# LANGUAGE ViewPatterns #-}
module Cafe.ChefTodoList
( chefTodoListMain
) where
import Control.Monad (forM_, unless)
import Control.Monad.Logger (runNoLoggingT)
import Data.List (foldl')
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Maybe (catMaybes, mapMaybe)
im... | 1 | Flatten out GloballyOrderedEvent record type | 1 | .hs | hs | mit | jdreaver/eventful |
10034005 | <NME> Aeson.hs
<BEF> ADDFILE
<MSG> Move aeson stuff to event-sourcing
<DFF> @@ -0,0 +1,44 @@
+-- | Common Aeson helpers for event types.
+
+module EventSourcing.Aeson
+ ( module X
+ , sumRecordOptions
+ , unPrefix
+ ) where
+
+import Data.Aeson as X (FromJSON(..), ToJSON(..), encode, decode)
+import Data.Aeson.TH ... | 44 | Move aeson stuff to event-sourcing | 0 | .hs | hs | mit | jdreaver/eventful |
10034006 | <NME> Projection.hs
<BEF> {-# LANGUAGE RecordWildCards #-}
module Eventful.Projection
( Projection (..)
, latestProjection
, allProjections
, StreamProjection (..)
, VersionedStreamProjection
, GlobalStreamProjection
, streamProjection
, versionedStreamProjection
, globalStreamProjection
, getLates... | 1 | Expose streamProjectionEventHandler | 0 | .hs | hs | mit | jdreaver/eventful |
10034007 | <NME> CHANGELOG.md
<BEF> # eventful Changelog
## 0.2.0
## 0.1.3
* Added `ProjectionCache` for caching `Projection` state in event streams.
## 0.2.0
* Breaking change: Split up `EventStore` into `EventStoreWriter` and
`EventStoreReader`. There is now a ton of code sharing between reading from
individual streams ... | 5 | Update CHANGELOG | 0 | .md | md | mit | jdreaver/eventful |
10034008 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, CounterCommandHandler
, c... | 15 | Remove ProjectionId type | 16 | .hs | hs | mit | jdreaver/eventful |
10034009 | <NME> Serializer.hs
<BEF> module Eventful.Serializer
( Serializer (..)
, simpleSerializer
, jsonSerializer
, jsonTextSerializer
, dynamicSerializer
( -- * Class
Serializer (..)
, simpleSerializer
, composeSerializers
-- * Common serializers
, idSerializer
, traverseSerializer
, jsonSeriali... | 10 | Add function to compose serializers | 0 | .hs | hs | mit | jdreaver/eventful |
10034010 | <NME> CHANGELOG.md
<BEF> # eventful Changelog
## 0.1.2
## 0.1.1
* Small pedantic fixes for examples and test suites.
## 0.2.0
* Breaking change: Split up `EventStore` into `EventStoreWriter` and
`EventStoreReader`. There is now a ton of code sharing between reading from
individual streams and reading from the g... | 5 | Update CHANGELOG | 0 | .md | md | mit | jdreaver/eventful |
10034011 | <NME> Projection.hs
<BEF> {-# LANGUAGE RecordWildCards #-}
module Eventful.Projection
( Projection (..)
, latestProjection
, allProjections
, StreamProjection (..)
, VersionedStreamProjection
, GlobalStreamProjection
, globallyOrderedProjectionEventHandler
, getLatestGlobalProjection
, serializedProj... | 11 | Added projectionMapMaybe | 5 | .hs | hs | mit | jdreaver/eventful |
10034012 | <NME> Sqlite.hs
<BEF> {-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
module Eventful.Store.Sqlite
( SqliteEventStore
, sqliteEventStore
, initializeSqliteEventStore
, SqliteEvent (..)
) where
import Control.Monad.Reader
import Data.Monoid
import Data.Text ... | 21 | Add more docs to new data types | 13 | .hs | hs | mit | jdreaver/eventful |
10034013 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Eventful.TestHelpers
( Counter (..)
, CounterEvent (..)
, CounterCommand (..)
, CounterCommandError (..)
, CounterCommandHandler
, counterCommandHandler
, CounterEvent (..)
, CounterCommand (..)
, EventStoreRunner (..)
, ... | 29 | Scrap your type classes: Projection and Aggregate | 22 | .hs | hs | mit | jdreaver/eventful |
10034014 | <NME> TransferManager.hs
<BEF> ADDFILE
<MSG> Created beginnings of ProcessManager
<DFF> @@ -0,0 +1,83 @@
+module Bank.ProcessManagers.TransferManager
+ ( TransferManager (..)
+ , TransferManagerTransferData (..)
+ , TransferProcessManager
+ , transferProcessManager
+ ) where
+
+import Eventful
+
+import Bank.Aggr... | 83 | Created beginnings of ProcessManager | 0 | .hs | hs | mit | jdreaver/eventful |
10034015 | <NME> counter-cli.hs
<BEF> -- | This program shows very basic usage of an event store. We create a very
-- simple Counter Projection/CommandHandler that holds an integer between 0 and 100.
-- The CLI asks the user for commands and applies them to an in-memory event
-- store.
module Main where
import Control.Concurren... | 4 | Merge branch 'master' into cafe-example | 4 | .hs | hs | mit | jdreaver/eventful |
10034016 | <NME> RunCommand.hs
<BEF> module Bank.CLI.RunCommand
( runCLICommand
) where
import Control.Monad.IO.Class (MonadIO)
import Data.Aeson
import Data.Aeson.Encode.Pretty
import Bank.Models
import Bank.CLI.Options
import Bank.CLI.Store
import Bank.ReadModels.CustomerAccounts
runCLICommand :: ConnectionPool -> CLICom... | 27 | Created account transfer command in bank CLI | 0 | .hs | hs | mit | jdreaver/eventful |
10034017 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, CounterCommandHandler
, c... | 20 | Rename orderKey to position | 20 | .hs | hs | mit | jdreaver/eventful |
10034018 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, CounterCommandHandler
, c... | 1 | Remove getAllUuids function | 5 | .hs | hs | mit | jdreaver/eventful |
10034019 | <NME> counter-cli.hs
<BEF> -- | This program shows very basic usage of an event store. We create a very
-- simple Counter Projection/CommandHandler that holds an integer between 0 and 100.
-- The CLI asks the user for commands and applies them to an in-memory event
-- store.
module Main where
import Control.Concurren... | 1 | Return latest event version in getLatestProjection | 1 | .hs | hs | mit | jdreaver/eventful |
10034020 | <NME> PostgresqlSpec.hs
<BEF> {-# LANGUAGE OverloadedStrings #-}
module Eventful.Store.PostgresqlSpec (spec) where
import Control.Monad.Reader (ask)
import Data.Monoid ((<>))
import Data.Text (Text, intercalate)
import Database.Persist.Postgresql
import Test.Hspec
import Eventful.Store.Postgresql
import Eventful.Tes... | 19 | Add fetching of postgres connection data from enironment | 3 | .hs | hs | mit | jdreaver/eventful |
10034021 | <NME> Class.hs
<BEF> {-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
EventStore (..)
, getEvents
, storeEvents
-- * Utility types
, ProjectionId (..)
, StoredEvent (..)
, VersionedEventStoreReader
, GlobalEventStoreReader
, VersionedEventStoreWriter
, StreamEvent (..)
, Versione... | 23 | Added convenience functions for storing events | 0 | .hs | hs | mit | jdreaver/eventful |
10034022 | <NME> counter-cli.hs
<BEF> -- | This program shows very basic usage of an event store. We create a very
-- simple Counter Projection/CommandHandler that holds an integer between 0 and 100.
-- The CLI asks the user for commands and applies them to an in-memory event
-- store.
module Main where
import Control.Concurren... | 15 | Use the verb "handle" instead of "apply" | 15 | .hs | hs | mit | jdreaver/eventful |
10034023 | <NME> introduction.rst
<BEF> Introduction
============
Features
--------
The goal of ``eventful`` is not to be a framework that imposes design decisions
on application developers. It is meant to be a toolbox from which you can
choose specific features to construct your application. Some features include:
* Robust ev... | 32 | Flesh out docs intro a little | 0 | .rst | rst | mit | jdreaver/eventful |
10034024 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, CounterCommandHandler
, c... | 15 | Fix in-memory global store sequence numbers | 0 | .hs | hs | mit | jdreaver/eventful |
10034025 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, CounterCommandHandler
, c... | 2 | Store and publish multiple events | 2 | .hs | hs | mit | jdreaver/eventful |
10034026 | <NME> CHANGELOG.md
<BEF> # eventful Changelog
## 0.2.0
* Breaking change: Made the API for `EventStore` and `GlobalStreamEventStore`
more similar so code can be more generic between them. This simplified a lot
of the event and projection types as well (now just variations on
`StreamEvent` and `StreamProjection`... | 5 | Update CHANGELOG | 4 | .md | md | mit | jdreaver/eventful |
10034027 | <NME> Memory.hs
<BEF> {-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RecordWildCards #-}
module Eventful.ProjectionCache.Memory
( ProjectionMap
, emptyProjectionMap
, projectionMapTVar
, tvarProjectionCache
, embeddedStateProjectionCache
, module Eventful.ProjectionCache.Types
) where
import Control.Con... | 0 | Remove clearSnapshots, it's unused right now | 2 | .hs | hs | mit | jdreaver/eventful |
10034028 | <NME> Sync.hs
<BEF> ADDFILE
<MSG> Add a synchronous event bus
<DFF> @@ -0,0 +1,25 @@
+module Eventful.EventBus.Sync
+ ( SyncEventBusIO
+ , syncEventBusIO
+ ) where
+
+import Control.Monad.IO.Class
+import Data.IORef
+
+import Eventful.EventBus.Class
+import Eventful.Store
+
+newtype SyncEventBusIO m serialized = Sy... | 25 | Add a synchronous event bus | 0 | .hs | hs | mit | jdreaver/eventful |
10034029 | <NME> TransferManager.hs
<BEF> {-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TemplateHaskell #-}
, TransferManagerTransferData (..)
, TransferProcessManager
, transferProcessManager
) where
import Eventful
import Bank.Commands
import Bank.Events
data TransferManager
= TransferManager
{ transferManagerDat... | 39 | Created proper account transfer process manager | 9 | .hs | hs | mit | jdreaver/eventful |
10034030 | <NME> Store.hs
<BEF> {-# LANGUAGE RecordWildCards #-}
module Bank.CLI.Store
( runDB
, cliEventStoreReader
, cliEventStoreWriter
, cliGlobalEventStoreReader
, printJSONPretty
) where
import Control.Monad.IO.Class (MonadIO (..))
import Data.Aeson
import Data.Aeson.Encode.Pretty
import qualified Data.ByteStr... | 1 | Allow global projections to have keys | 1 | .hs | hs | mit | jdreaver/eventful |
10034031 | <NME> CustomerAccounts.hs
<BEF> ADDFILE
<MSG> Added global read model to bank example
<DFF> @@ -0,0 +1,60 @@
+module Bank.ReadModels.CustomerAccounts
+ ( CustomerAccounts (..)
+ , getCustomerAccountsFromName
+ , customerAccountsProjection
+ ) where
+
+import Data.Map.Strict (Map)
+import qualified Data.Map.Strict ... | 60 | Added global read model to bank example | 0 | .hs | hs | mit | jdreaver/eventful |
10034032 | <NME> DynamoDBSpec.hs
<BEF> {-# LANGUAGE OverloadedStrings #-}
module Eventful.Store.DynamoDBSpec (spec) where
import Control.Lens ((<&>))
import Network.AWS
import Network.AWS.DynamoDB
import Test.Hspec
import Eventful
import Eventful.Store.DynamoDB
import Eventful.TestHelpers
spec :: Spec
spec = do
describe "Dy... | 6 | Update DynamoDB store for EventStore split | 6 | .hs | hs | mit | jdreaver/eventful |
10034033 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, counterAggregate
, Counte... | 25 | Simplified creating test suite event stores | 32 | .hs | hs | mit | jdreaver/eventful |
10034034 | <NME> counter-cli.hs
<BEF> -- | This program shows very basic usage of an event store. We create a very
-- simple Counter Projection/CommandHandler that holds an integer between 0 and 100.
-- The CLI asks the user for commands and applies them to an in-memory event
-- store.
module Main where
import Control.Concurren... | 2 | Make EventStoreWriter more general | 2 | .hs | hs | mit | jdreaver/eventful |
10034035 | <NME> Store.hs
<BEF> ADDFILE
<MSG> Added EventStore class and EventBus type
<DFF> @@ -0,0 +1,23 @@
+module EventSourcing.Store
+ ( EventStore (..)
+ ) where
+
+import EventSourcing.UUID
+
+-- Is the UUID part really necessary? Should that be handled in a StoredEvent
+-- type?
+class (Monad m) => EventStore store m e... | 23 | Added EventStore class and EventBus type | 0 | .hs | hs | mit | jdreaver/eventful |
10034036 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, CounterCommandHandler
, c... | 4 | Documented event store better, cleaned up too | 4 | .hs | hs | mit | jdreaver/eventful |
10034037 | <NME> DynamoDBSpec.hs
<BEF> module Eventful.Store.DynamoDBSpec (spec) where
import Control.Lens ((<&>))
import Network.AWS
import Network.AWS.DynamoDB
import Test.Hspec
import Test.Hspec
import Eventful.Store.DynamoDB
import Eventful.TestHelpers
makeStore :: IO (DynamoDBEventStore AWS, Env)
makeStore = do
let
d... | 2 | Allow user to choose serialization in DynamoDB | 1 | .hs | hs | mit | jdreaver/eventful |
10034038 | <NME> Projection.hs
<BEF> {-# LANGUAGE RecordWildCards #-}
module Eventful.Projection
( Projection (..)
, latestProjection
, allProjections
, StreamProjection (..)
, VersionedStreamProjection
, GlobalStreamProjection
, streamProjection
where
import Data.Foldable (foldl')
import Data.List (scanl')
impo... | 6 | Make Projection an instance of Contravariant | 0 | .hs | hs | mit | jdreaver/eventful |
10034039 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
, CommandError (..)
, eventStoreSpec
, sequencedEventStoreSpec
, module X
) where
import Control.Monad as X
im... | 37 | Added tests for event bus | 0 | .hs | hs | mit | jdreaver/eventful |
10034040 | <NME> Store.hs
<BEF> {-# LANGUAGE RecordWildCards #-}
module Bank.CLI.Store
( runDB
, cliEventStoreReader
, cliEventStoreWriter
, cliGlobalEventStoreReader
, printJSONPretty
) where
import Data.Aeson
import Data.Aeson.Encode.Pretty
import qualified Data.ByteString.Lazy.Char8 as BSL
import Data.Functor.Con... | 1 | Generalize StreamProjection operations better | 2 | .hs | hs | mit | jdreaver/eventful |
10034041 | <NME> Class.hs
<BEF> ADDFILE
<MSG> Split out projection read model class
<DFF> @@ -0,0 +1,18 @@
+module EventSourcing.ReadModel.Class
+ ( ProjectionReadModel (..)
+ ) where
+
+import EventSourcing.Projection
+import EventSourcing.Store
+import EventSourcing.UUID
+
+class (Projection proj, Monad m) => ProjectionReadM... | 18 | Split out projection read model class | 0 | .hs | hs | mit | jdreaver/eventful |
10034042 | <NME> SerializerSpec.hs
<BEF> {-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TemplateHaskell #-}
module Eventful.SerializerSpec (spec) where
import Eventful.Serializer
spec :: Spec
spec = do
describe "EventSumType" $ do
it "can serialize events without the constructor" $ do
dynTypeRep (eventToDyn $ MyEvent... | 26 | Add tests for sum type serializer | 14 | .hs | hs | mit | jdreaver/eventful |
10034043 | <NME> Class.hs
<BEF> {-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
module Eventful.Store.Class
( -- * EventStore
EventStoreReader (..)
, EventStoreWriter ... | 12 | Add more HasEventStore functions | 0 | .hs | hs | mit | jdreaver/eventful |
10034044 | <NME> counter-cli.hs
<BEF> -- | This program shows very basic usage of an event store. We create a very
-- simple Counter Projection/CommandHandler that holds an integer between 0 and 100.
-- The CLI asks the user for commands and applies them to an in-memory event
-- store.
module Main where
import Control.Concurren... | 1 | Finish unifying stream and global query APIs | 1 | .hs | hs | mit | jdreaver/eventful |
10034045 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, CounterCommandHandler
, c... | 16 | Allow getting event starting at a given version | 0 | .hs | hs | mit | jdreaver/eventful |
10034046 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, CounterCommandHandler
, c... | 93 | Update tests and memory event store for split | 85 | .hs | hs | mit | jdreaver/eventful |
10034047 | <NME> SqliteSpec.hs
<BEF> {-# LANGUAGE OverloadedStrings #-}
module Eventful.Store.SqliteSpec (spec) where
import Database.Persist.Sqlite
import Test.Hspec
import Eventful.Store.Sqlite
import Eventful.TestHelpers
spec :: Spec
spec = do
describe "Sqlite event store" $ do
eventStoreSpec sqliteStoreRunner
gl... | 22 | Update sql event stores for EventStore split | 18 | .hs | hs | mit | jdreaver/eventful |
10034048 | <NME> TestHelpers.hs
<BEF> {-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Common test functionality
module Eventful.TestHelpers
( Counter (..)
, CounterProjection
, counterProjection
, CounterCommandHandler
, c... | 9 | Fix getLatestProjection returning bad state | 0 | .hs | hs | mit | jdreaver/eventful |
10034049 | <NME> postgres-event-store-bench.sh
<BEF> #!/usr/bin/env bash
set -eu;
# Benchmark various configurations of postgres as an event store.
export PGHOST=${PGHOST:-localhost}
export PGDATABASE=${PGDATABASE:-postgres_event_store_bench}
export PGUSER=${PGUSER:-postgres}
export PGPASSWORD=${PGPASSWORD:-password}
PSQL="ps... | 8 | Mess with more postgres settings in benchmark | 1 | .sh | sh | mit | jdreaver/eventful |