proxy.golang.org : github.com/mantzas/incata
Package incata is a source eventing data access library. The name combines incremental (inc) and data (ata). Details about event sourcing can be read on Martin Fowlers site(http://martinfowler.com/eaaDev/EventSourcing.html). Currently we support two relational DB's, MS Sql Server and Postgresql. The stored Event has the following structure: The payload is the actual data that we like to store in our DB. Since the serializer can be anything the data type is set to interface{}. This means that our db table column for the Payload have to match the serializer's result data type. In order to use the appender or retriever we have to provide the following: 1. a serializer or deserializer which implements the Serializer or Deserializer interface or the . A JSONMarshaller is provided. 2. a writer or reader which implements the Writer or Reader interface. A SQLWriter and SQLReader is provided. 3. a appender and retriever which implement the Appender and Retriever interface. Appender and Retriever are provided. The supported relational DB's are MS Sql Server and PostgreSQL. Check out the examples in the examples folder for setting up the default marshaller and reader/writers. SQL Server Driver used: DB Table setup (Provide a table name) PostgreSQL Driver used: DB Table setup (Provide a table name) For a full guide visit https://github.com/mantzas/incata
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/mantzas/incata
Keywords:
database
, event-sourcing
, go
, golang
License: Apache-2.0
Latest release: about 9 years ago
First release: over 9 years ago
Namespace: github.com/mantzas
Stars: 19 on GitHub
Forks: 3 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 27 days ago