Skip to content

Conversation

@jpalawaga
Copy link
Member

@jpalawaga jpalawaga commented Oct 19, 2021

@ninthclowd provided a wonder contribution to the odbc project to support go context deadlines.

Reasons for this:

  • (primary): resolve merge conflicts on our branch
  • (primary): be able to adjust all vendor URIs in one go.
  • (secondary): desire to unvendor dependencies as a part of merge

I'm taking the contribution at face value.

John Coleman and others added 27 commits October 19, 2021 19:15
* move conn methods to conn.go
* move stmt methods to stmt.go.
* consolidate Prepare()
* remove internal re-prepare in subsequent calls to Exec/Query
* move closeByRows to Rows.Close()
* move closeByStmt to Stmt.Close()
* use uber atomic library for better ergonomics
* queries will now be cancelled and the connections will be closed in the background if the context is canceled
* supports setting transaction isolation level via BeginTx
* Ping functionality supported
* ResetSession now implemented to prevent driver from reusing bad connections
* Moved most core functionality from non-context methods to context methods. Non-context methods call context methods with context.Background()
@jpalawaga jpalawaga changed the title Prepare ninthclowd's contribution prepared contextdeadline contribution Oct 19, 2021
@jpalawaga jpalawaga merged commit f94db1f into master Oct 19, 2021
@jpalawaga
Copy link
Member Author

Original PR : alexbrainman/odbc#151

@jpalawaga jpalawaga deleted the prepare-ninthclowd branch October 19, 2021 23:50
@jpalawaga
Copy link
Member Author

This was removed from mainline as it was causing panics. Additionally, a closer review of the code showed a lot of unfinished todos and other loose ends that should have been cleaned up before merging.

@jpalawaga jpalawaga restored the prepare-ninthclowd branch November 1, 2021 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants