Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mock postgresql data base #55

Closed
avelino opened this issue Dec 23, 2016 · 1 comment
Closed

Mock postgresql data base #55

avelino opened this issue Dec 23, 2016 · 1 comment
Milestone

Comments

@avelino
Copy link
Member

avelino commented Dec 23, 2016

Example on PostgreSQL drive:
https://golang.org/src/database/sql/sql_test.go#L1030

@marioidival
Copy link
Contributor

https://github.com/DATA-DOG/go-sqlmock

@avelino avelino added this to the 0.2 milestone Jan 22, 2017
@avelino avelino closed this as completed Feb 7, 2017
@avelino avelino modified the milestones: 0.4, 0.3.0 Nov 3, 2017
avelino pushed a commit that referenced this issue Jul 29, 2020
* add Mock as driver

m: register mockDriver
add TestMock_GetTransaction
move mockDriver to Mock
driver > conn

* fix mock assign

* avoid registering multiple times the same driver
avelino added a commit that referenced this issue Jul 29, 2020
…t-calls-prest/adapters

* github.com:prest/adapters:
  avoid panic on tx.commit calls (#55)

Signed-off-by: Avelino <t@avelino.xxx>
tiaguinho pushed a commit that referenced this issue Aug 4, 2020
* add Mock as driver

m: register mockDriver
add TestMock_GetTransaction
move mockDriver to Mock
driver > conn

* fix mock assign

* avoid registering multiple times the same driver
avelino pushed a commit that referenced this issue Aug 5, 2020
* add Mock as driver

m: register mockDriver
add TestMock_GetTransaction
move mockDriver to Mock
driver > conn

* fix mock assign

* avoid registering multiple times the same driver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants