1
0
mirror of https://github.com/DATA-DOG/go-sqlmock.git synced 2025-04-23 11:58:47 +02:00

updates readme and license

This commit is contained in:
gedi 2017-02-09 09:26:25 +02:00
parent 128bf5c539
commit 53b2cd1534
2 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
The three clause BSD license (http://en.wikipedia.org/wiki/BSD_licenses) The three clause BSD license (http://en.wikipedia.org/wiki/BSD_licenses)
Copyright (c) 2013-2016, DATA-DOG team Copyright (c) 2013-2017, DATA-DOG team
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without

View File

@ -10,19 +10,16 @@ maintain correct **TDD** workflow.
- this library is now complete and stable. (you may not find new changes for this reason) - this library is now complete and stable. (you may not find new changes for this reason)
- supports concurrency and multiple connections. - supports concurrency and multiple connections.
- supports **go1.8** Context related feature mocking and Named sql parameters.
- does not require any modifications to your source code. - does not require any modifications to your source code.
- the driver allows to mock any sql driver method behavior. - the driver allows to mock any sql driver method behavior.
- has strict by default expectation order matching. - has strict by default expectation order matching.
- has no vendor dependencies. - has no third party dependencies.
## Install ## Install
go get gopkg.in/DATA-DOG/go-sqlmock.v1 go get gopkg.in/DATA-DOG/go-sqlmock.v1
If you need an old version, checkout **go-sqlmock** at gopkg.in:
go get gopkg.in/DATA-DOG/go-sqlmock.v0
## Documentation and Examples ## Documentation and Examples
Visit [godoc](http://godoc.org/github.com/DATA-DOG/go-sqlmock) for general examples and public api reference. Visit [godoc](http://godoc.org/github.com/DATA-DOG/go-sqlmock) for general examples and public api reference.
@ -187,8 +184,11 @@ It only asserts that argument is of `time.Time` type.
go test -race go test -race
## Changes ## Change Log
- **2017-02-09** - implemented support for **go1.8** features. **Rows** interface was changed to struct
but contains all methods as before and should maintain backwards compatibility. **ExpectedQuery.WillReturnRows** may now
accept multiple row sets.
- **2016-11-02** - `db.Prepare()` was not validating expected prepare SQL - **2016-11-02** - `db.Prepare()` was not validating expected prepare SQL
query. It should still be validated even if Exec or Query is not query. It should still be validated even if Exec or Query is not
executed on that prepared statement. executed on that prepared statement.