Hi all,

I am just looking at options to write tests for parts of my application 
that interacts with a SQL database. So far it seems like the community has 
few distinct schools of thought:

- Mocks (For e.g. using https://pkg.go.dev/github.com/DATA-DOG/go-sqlmock)
- In-memory "real" DB solutions - such as tidb-lite for MySQL 
(https://github.com/WangXiangUSTC/tidb-lite)
- Container based functional/integration style testing

It will be great to hear if anybody has some other experiences to share.

Thanks,
Amit.


On Saturday, October 10, 2015 at 5:30:20 AM UTC+11 kyle.a...@gmail.com 
wrote:

>
> On Thursday, October 8, 2015 at 3:54:08 PM UTC-4, vkoch...@gmail.com 
> wrote:
>
>> 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.
>>
>
> Maybe have a look at tidb <https://github.com/pingcap/tidb>? (
> https://github.com/pingcap/tidb/blob/master/docs/USAGE.md) 
>

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/4fbc3ae9-b0ff-4750-bfba-1d58a1dba986n%40googlegroups.com.

Reply via email to