-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I have been working on a project called go-api-basic for a while now and setup what I think is a decent way of implementing transactions. In my datastore package I have a Datastorer interface, with a DB() method to return the sql.DB, a BeginTx method to begin a Transaction, a RollbackTx method to rollback a transaction and a CommitTx method for committing. The Datastore struct implements this interface and has appropriate error handling, etc. In my controller package, you can see how I use this towards the end of the CreateMovie method. I've actually been working on this thing for 3.5 years and this is the first time I've ever posted on reddit about it haha, hope it helps.