Skip to content

Conversation

@jpalawaga
Copy link
Member

@jpalawaga jpalawaga commented Nov 1, 2021

From ninthclowd's contributions

This was originally merged in #2 but pulled out because the changes were responsible for causing some panics.

John Coleman and others added 26 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
Copy link
Member Author

Re-opening since the other branch was backed out.

@jpalawaga jpalawaga changed the title Prepare ninthclowd Library cleanup/ContextDeadline improvements Nov 1, 2021
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