2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-02-16 13:32:15 +00:00

156 Commits

Author SHA1 Message Date
Ruben Perez
86e0eacd6a SSL/TLS and row reading rework (v0.2.0)
* SSL/TLS rework
* Unified connection object
* New prepared_statement::execute interface
* New resultset::read_one mechanic
* Unified row object
* null_t type
* Travis to GitHub actions migration
* Integration test rework
2022-03-21 16:09:48 +01:00
Ruben Perez
7bbf5acda6 Fixed issue when reconnecting a connection
closes #24
2021-03-09 08:24:39 +01:00
Ruben Perez
fa6f177e0f Added support for the BIT type
- Moved socket_connection to a separate include file.
- Clarified Stream requirements.
- Made make_error_code public.
- Updated include styles to match Boost's.
- Moved <boost/myql/mysql.hpp> to <boost/mysql.hpp> to match
conventions.
- Added support for the BIT type.

closes #13
closes #21
2021-03-08 18:56:25 +01:00
Ruben Perez
1ad31e7a6b TLS cert validation, valid() after moves and others
- Added connection::connection overload accepting a user-defined SSL
context.
- Added SSL certificate validation example.
- Removed ssl_options.
- Fixed an incorrect constexpr implementation
(value::is_convertible_to).
- Made I/O objects' valid() behavior after move operations more uniform.
- Changed exception type thrown by value::get to a custom one defined in
Boost.Mysql.
- Changed docs link in README.

closes #39
closes #27
closes #25
closes #10
2021-03-07 19:41:44 +01:00
Ruben Perez
ade68d172d Added support for relational operators in value
Replaced std::nullptr_t for boost::variant2::monostate in values
Added support for relational operators in value
Automatic docs generation

closes #48
closes #46
2021-03-06 16:35:15 +01:00
Ruben Perez
087faf187a Added execute_params
- Added execute_params
- prepared_statement::execute with iterators overload has been replaced by
execute_params overload
- Added type requirement checks for ValueForwardIterator and
ValueCollection
2021-02-28 22:05:31 +01:00
Ruben Perez
4c7ca0a1b4 Row reading reworks
- Removed distinction between row and owning_row
- Changed semantics for fetch_one to row& + bool
- Renamed all fetch_* fns to read_*
- Added row.clear()
2021-02-28 22:03:28 +01:00
Ruben Perez
dd2447c6cb Updated Boost version to 1.75.0
commit 5d0dafa324453ce731ddd2a427fa68490843b6c6
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Sun Dec 20 18:52:52 2020 +0100

    Added missing test exlussion on Windows

commit 52f1ce1eb6f43478451ee1c9761efa9a1f0c85bf
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Sun Dec 20 18:05:47 2020 +0100

    Trying to fix PS syntax errors 2

commit d680a874b069b8cc6c7965b226cda02f49438206
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Sun Dec 20 17:58:30 2020 +0100

    Fixing PS syntax errors

commit 84915ac269714fcfbfc6dc9e6ce10aefa395d33a
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Sun Dec 20 17:52:14 2020 +0100

    Changed Windows CMake builds to use latest Boost

commit 75aa757ae50f9c9d31cdb8018cf14e1dea5e6530
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Sun Dec 20 16:07:25 2020 +0100

    Removed conflictive build config under Windows

commit 7cd77f9204b842999233f8c6782caa3fbbf15a89
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Mon Dec 14 20:09:23 2020 +0100

    Desperate try to fix MSVC internal errors 2

commit f81de256735b1a705d03a7994cfecbce1a7581d4
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Sun Dec 13 20:44:59 2020 +0100

    Desperate try to fix stuff

commit 3a8f8d1caf8e8d906a7d96ba7edf62f2e3b09651
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Sun Dec 13 18:48:33 2020 +0100

    Reverted to using env var

commit 420427989274036fd04351531bdae2ebde621f5f
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Sun Dec 13 16:55:17 2020 +0100

    Changed CMake way of excluding tests to match b2's

commit 1db13f9e3df346135dadb1c2686ecafc0fe6c2df
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Sun Dec 13 16:33:05 2020 +0100

    Updated B2 CIs to explicitly run certain tests

commit 12700b387beb99f2ac1cf342291bc63f49d26a99
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Sun Dec 13 16:14:47 2020 +0100

    Updated test selection (sha256/unix) in b2

commit 0f23bddeb64203e5c570280e5e1de4a5ae083f94
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Sun Dec 13 16:14:34 2020 +0100

    Added internal script to setup b2 env

commit 13cf6b102b0d71f5496bcd433e3269ea297a9f26
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Sun Dec 13 14:00:30 2020 +0100

    Added option to skip UNIX socket tests (only cmake)

commit a35f668ae0a968ef01eb6517d9de86c45e07dceb
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Sat Dec 12 21:38:06 2020 +0100

    Attempted to correct test filter problem

commit 29282e5a4fa6e4f5b7c5de56662b9cbea7758e06
Author: anarthal <rubenperez038@gmail.com>
Date:   Sat Dec 12 11:27:53 2020 -0800

    Fixes to build in MSVC

commit bc8599358435de946cba10cc7cbdc264bb793e5b
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Sat Dec 5 13:57:56 2020 +0100

    Reduced concurrency on Unix cmake builds

commit 3e183277cb2b3c4480ec102f956a4683811d3f44
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Fri Dec 4 17:50:31 2020 +0100

    Test ssh keys

commit d91a4ebdb65444da1c5952444c571dc68de1cd7b
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Sun Nov 29 19:59:07 2020 +0100

    Remove TODO.txt in favor of GitHub issues

commit fbe5e58966304b6fd87029af4657e6ed1aa2f2fd
Author: Ruben Perez <rubenperez038@gmail.com>
Date:   Sun Nov 29 19:58:25 2020 +0100

    Updated to build with 1.75
2020-12-20 21:20:23 +01:00
ruben
5ba63a8459 Migrated docs to quickbook 2020-07-06 17:56:04 +01:00
ruben
3b91e6e978 Replaced gtest by Boost.Test 2020-06-29 17:17:11 +01:00
ruben
ddb3f14081 Removed date.h library 2020-06-21 15:49:30 +01:00
ruben
591671bd8d Lowered std requirement to C++11 2020-06-18 22:54:01 +01:00
ruben
3407d818f6 Added support for Boost.Build 2020-06-12 23:44:30 +01:00
ruben
cf2fd03926 Added support for default completion tokens 2020-06-02 12:16:13 +01:00
Richard Hodges
3c420b8683 Added support for use_awaitable
Co-authored-by: ruben <rubenperez038@gmail.com>
Co-authored-by: Alex Hodges <alexander.hodges11@live.co.uk>
2020-06-02 12:11:48 +01:00
ruben
157e95d717 Removed 32bit ints from value::variant_type 2020-05-17 13:00:43 +01:00
ruben
3e10845104 Made value a proper class 2020-05-16 17:30:30 +01:00
ruben
10761729be Added integration tests for invalid dates 2020-05-11 16:48:11 +01:00
ruben
6ad544d3bd Worked around a gcc7 issue 2020-04-24 16:11:20 +01:00
ruben
7a436895ce Reworked how integration tests do connect 2020-04-24 13:17:38 +01:00
ruben
2e96142ebb Split socket-specific methods to socket_connection 2020-04-24 12:35:06 +01:00
ruben
42a921d055 Added connection::connect 2020-04-24 11:54:54 +01:00
ruben
86c05c0d44 Made IntegTest dtor. call conn.quit() 2020-04-22 12:39:07 +01:00
ruben
ad82222828 Added connection close 2020-04-22 12:28:02 +01:00
ruben
f49ff4dc1f Added basic quit 2020-04-21 19:47:21 +01:00
ruben
1ae738c35b Renamed database and CMake library 2020-04-20 11:54:16 +01:00
ruben
a54c83ef6a Replaced tabs for spaces 2020-04-20 11:36:31 +01:00
ruben
16ef83b136 Added copyrights 2020-04-20 11:18:52 +01:00
ruben
30c22f1279 BadUser test is now more resilient 2020-04-16 18:50:36 +01:00
ruben
3a309e9e2a Now integration tests run directly from CMake 2020-04-16 18:50:14 +01:00
ruben
5bd3c59dad Changed default UNIX socket path 2020-04-16 14:02:55 +01:00
ruben
7c4ed5760b Further increased max_connections 2020-04-16 12:02:05 +01:00
ruben
c2ef59a670 Now run_tests.py transmits errors correctly 2020-04-16 11:57:38 +01:00
ruben
082b279ba2 Changed network_functions.cpp to build under MSVC
Replaced template variables by static ones
2020-04-15 18:33:14 +01:00
ruben
12fce9c4ec Removed unnecessary semicolons 2020-04-15 17:56:38 +01:00
ruben
805b655e35 Refactored network test functionality 2020-04-15 16:43:39 +01:00
ruben
a7625831d4 Extended tests to run under UNIX sockets 2020-04-15 12:42:38 +01:00
ruben
becd36a73a Added test for unknown auth plugin 2020-04-07 11:58:38 +01:00
ruben
d6957271d2 Restructured handshake integ tests 2020-04-06 17:25:26 +01:00
ruben
7c7f26c4fc Enhanced the test runner scripts for integ tests
Split db_setup.sql into regular + sha256
Added a Python script to conditionally run setup and tests
Modified the logic on SHA256 support
2020-04-06 16:44:12 +01:00
ruben
c06c2eddcd Enhanced unknown user test validations 2020-04-06 15:44:41 +01:00
ruben
e141661a6d Added tests for bad password for caching_sha256 2020-04-06 14:42:21 +01:00
ruben
4fb694d448 Added empty password users for caching_sha2 2020-04-06 13:37:52 +01:00
ruben
745064c009 Corrected handshake algorithm
Added integ tests for caching_sha256_password
2020-04-06 13:21:05 +01:00
ruben
12e6ce9c38 Added ssl_mode::enable 2020-04-05 15:46:25 +01:00
ruben
b18cbd2aa6 Integ tests now run with and without ssl 2020-04-05 12:49:37 +01:00
ruben
008068e909 Moved connection_params to a separate file
Made it a proper class
Added ssl_options
Removed handshake_params
2020-04-04 18:19:55 +01:00
ruben
8cf185eebe Added integ tests for error_info*=nullptr in asyncs 2020-04-03 16:16:34 +01:00
ruben
9f1c77e20b Simplified some network_function's impl 2020-04-03 15:48:32 +01:00
ruben
5d9ce90b29 Added tests to verify we clear error_info in asyncs 2020-04-03 15:30:51 +01:00