<https://talks.golang.org/2014/testing.slide#1>” which advocates using
httptest fake http server implementation for your code testing. In scope of
business logic application the major dependency is SQL database. I found
testing part of go code that access data in database as problematic. The
Java word enjoys a very powerful H2 database
<http://www.h2database.com/html/quickstart.html> that can:
- create database snapshot to the file
- load the snapshot into in memory database instance
- can simulate different dialects of sql
Is there any similar soft in go world for “database/sql/driver” capable of
running as embedded database engine?
P.S. I don’t see embedded versions of PostgreSQL or MySql. The SQLite is
not quite reach SQL implementation from enterprise point of view.
How do you test your data access in go code?
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
For more options, visit https://groups.google.com/d/optout.