Release 0.3.0-alpha-1

0 views
Skip to first unread message

Phil Bayfield

unread,
Feb 5, 2011, 11:20:50 PM2/5/11
to GoMySQL
Changes:

- First test release of new library, completely rewritten from
scratch.
- Fully compatible with all versions of MySQL using the 4.1+ protocol
and 4.0 protocol (which supports earlier versions).
- Fully supports old and new passwords, including old passwords using
the 4.1 protocol.
- Includes new Go style constructors 'NewClient', 'DialTCP',
'DialUnix' replacing 'New' from the 0.2 branch.
- All structs have been renamed to be more user friendly, MySQL has
also now been replaced with Client.
- Removed many dependencies on external packages such as bufio.
- New reader that reads the entire packet completely to a slice then
processes afterwards.
- New writer that constructs the entire packet completely to a slice
and writes in a single operation.
- The Client.Query function no longer returns a result set and now
uses the tradition store/use result mechanism for retrieving the
result and processing it's contents.
- The 'MultiQuery' function has been removed as this is now supported
by the Client.Query function.
- Currently all result sets must be freed before another query can be
executed either using the Result.Free() method or Client.FreeResult()
method, a check for additional result sets can be made using
Client.MoreResults() and the next result can be retrieved using
Client.NextResult().
- Client.FreeResult() is capable of reading and discarding an entire
result set (provided the first result set packet has been read), a
partially read result set (e.g. from Client.UseResult) or a fully
stored result.
- Transaction support and prepared statements are NOT available in
this alpha release.

Installing:

- Checkout the tag containing the alpha release from
https://github.com/Philio/GoMySQL/tree/0.3.0-alpha-1 and build via
make install.

Testing:

- A gotest package is in progress, it currently includes only
connection testing but will be expanded in a future development
release

Documentation:

- No documentation besides the above changes list exists yet for this
version, however it should be fairly straight forward to use.
Reply all
Reply to author
Forward
0 new messages