272 Commits

Author SHA1 Message Date
Greg Turnquist
6cd08ac64b #121 - Force check for updates. 2019-08-05 11:11:09 -05:00
Mark Paluch
da8a7b339c #155 - Add early returns if conversion can be skipped. 2019-07-25 15:59:06 +02:00
Greg Turnquist
412e8519c1 #121 - Polishing. 2019-07-19 11:43:26 -05:00
Greg Turnquist
dd184349c8 #121 - Publish documentation for main branch. 2019-07-19 11:43:15 -05:00
Mark Paluch
861a2b194f #148 - Consider sorting of PageRequest.
Issuing a paged SELECT with paging now considers the Sort order of PageRequest.
2019-07-16 12:00:05 +02:00
Mark Paluch
929c4dfab4 #138 - Allow multiple usages of the same named parameter.
We now allow multiple usages of the same named parameter if the underlying database supports identifiable placeholders.

SELECT * FROM person where name = :id or lastname = :id

gets translated to

SELECT * FROM person where name = $1 or lastname = $1
2019-07-15 16:39:27 +02:00
Mark Paluch
7403651ba3 #103 - Coroutines extensions throw proper EmptyResultDataAccessException.
RowsFetchSpec.awaitOne() and RowsFetchSpec.awaitFirst() now throw EmptyResultDataAccessException instead of NoSuchElementException to consistently use Spring DAO exceptions.
2019-07-15 14:17:39 +02:00
Mark Paluch
e15bd3162c #124 - Polishing.
Tighten nullability constraints. Consistent Javadoc.
2019-07-15 14:03:04 +02:00
Mark Paluch
59552705a3 #124 - Polishing.
Reduce Lombok usage to within tests.
2019-07-15 13:50:10 +02:00
Mark Paluch
3c3277eac4 #124 - Remove deprecated DatabaseClient.execute().sql(…) and TransactionalDatabaseClient. 2019-07-15 13:39:23 +02:00
Mark Paluch
b1e97035f2 #140 - Polishing.
Reduce assertions on numeric fields to contain a Number subtype.
2019-07-12 15:39:11 +02:00
Mark Paluch
776044de2b #140 - Accept simple mapping function for Row in DatabaseClient.
We now accept a Function<Row, T> in DatabaseClient's map(…) operator to simplify mapping by not requiring RowMetadata.
2019-07-12 15:39:11 +02:00
Mark Paluch
1d42866231 #146 - Fix typo. 2019-07-10 09:49:37 +02:00
Mark Paluch
c58366125d #121 - Cleanup release profile.
Reuse inherited configuration from parent pom.
2019-07-09 11:38:24 +02:00
Mark Paluch
8f848170d2 #146 - Revise readme for a consistent structure. 2019-07-09 11:38:24 +02:00
Mark Paluch
9afffdd999 #145 - Register R2DBC Repository factory in spring.factories.
We now register R2dbcRepositoryFactory as repository factory to aid Spring Data's multi-store detection so Spring Data enters strict config mode when multiple modules are on the class path.
2019-07-05 19:29:32 +02:00
Greg Turnquist
7628fd25f6 #121 - Use parent 'artifactory' profile for snapshot releases. 2019-07-05 11:31:43 -05:00
Greg Turnquist
47e181262e #121 - Only build main branch for upstream triggers. 2019-06-28 19:39:15 -05:00
Greg Turnquist
f6e94cdfa7 #121 - Set user.name and user.home for CI jobs. 2019-06-25 14:08:29 -05:00
Mark Paluch
82aad7c4f5 #141 - Add support for schema initialization.
We now provide DatabasePopulator and ScriptUtils to run SQL scripts using R2DBC Connections to initialize and clean up databases.
2019-06-22 20:57:07 +02:00
Greg Turnquist
a21b403e6d #121 - Introduce Jenkins. 2019-06-11 20:24:04 -05:00
Mark Paluch
0d5f5089be #135 - Adapt to renamed TransactionSynchronizationManager.forCurrentTransaction(). 2019-06-05 14:35:16 +02:00
Mark Paluch
bedc18bc69 #105 - Move named parameter resolution to ReactiveDataAccessStrategy.
Named parameter resolution is now provided as part of ReactiveDataAccessStrategy. This allows us to hide implementation internals (bind markers). DatabaseClient allows configuration whether to use named parameter expansion.

Detailed configuration of named parameter support is now moved to DefaultReactiveDataAccessStrategy.

Original pull request: #105.
2019-06-04 14:34:35 +02:00
Jens Schauder
7372efe3e6 #98 - Polishing.
Formatting.
Changed generics to avoid unchecked casting.
Avoided abbreviated variable name.
Simplified handling of absent keys at ConnectionFactory lookup.

Original pull request: #132.
2019-06-04 11:53:06 +02:00
Mark Paluch
e3aae619f4 #98 - Add support for AbstractRoutingConnectionFactory.
We now provide an abstract base class for ConnectionFactory routing. Routing keys are typically obtained from a subscriber context. AbstractRoutingConnectionFactory is backed by either a map of string identifiers or connection factories. When using string identifiers, these can map agains e.g. Spring bean names that can be resolved using BeanFactoryConnectionFactoryLookup.

class MyRoutingConnectionFactory extends AbstractRoutingConnectionFactory {

		@Override
		protected Mono<Object> determineCurrentLookupKey() {
			return Mono.subscriberContext().filter(it -> it.hasKey(ROUTING_KEY)).map(it -> it.get(ROUTING_KEY));
		}
}

@Bean
public void routingConnectionFactory() {

		MyRoutingConnectionFactory router = new MyRoutingConnectionFactory();

		Map<String, ConnectionFactory> factories = new HashMap<>();
		ConnectionFactory myDefault = …;
		ConnectionFactory primary = …;
		ConnectionFactory secondary = …;

		factories.put("primary", primary);
		factories.put("secondary", secondary);

		router.setTargetConnectionFactories(factories);
		router.setDefaultTargetConnectionFactory(myDefault);

		return router;
}

Original pull request: #132.
2019-06-04 11:52:32 +02:00
Mark Paluch
16d4a66f6a #134 - Create security policy readme. 2019-05-31 15:17:42 +02:00
Mark Paluch
d6c812a4eb #104 - Incorporate review feedback.
Original pull request: #127.
2019-05-27 17:11:30 +02:00
Mark Paluch
9f6cf4061c #104 - Polishing.
Fix documentation links. Use variables for links to Spring Framework reference docs.

Original pull request: #127.
2019-05-27 17:11:30 +02:00
Mark Paluch
043e8a6855 #104 - Provide extension mechanism for R2dbcDialect resolution.
We now use Spring's spring.factories mechanism to register and lookup R2dbcDialectProvider implementations.
This allows a pluggable model for third party implementations to ship R2dbcDialect support that can be auto-discovered.

Original pull request: #127.
2019-05-27 17:11:29 +02:00
Toshiaki Maki
85dcf6b71d #130 - Fix scheme name in sample code.
Fix scheme name.
2019-05-24 16:10:41 +02:00
Mark Paluch
376bfef387 #128 - Fix NullPointerException calling bindNull() with enabled named parameter support. 2019-05-23 10:09:31 +02:00
Mark Paluch
67c71fd584 #87 - Polishing.
Qualify field access with this.
2019-05-22 15:50:28 +02:00
Mark Paluch
d4a06a781c #87 - Consistently use RowMetadata.
We now apply row metadata checks also for property population.
2019-05-22 15:50:02 +02:00
Mark Paluch
1c9595f221 #126 - Polishing.
Remove superfluous property.
2019-05-22 15:01:53 +02:00
Mark Paluch
4cba0d5ac3 #126 - Use testcontainers version property.
We now use the version property from Spring Data Build and import testcontainers-bom.
2019-05-22 15:01:53 +02:00
Jens Schauder
ac4e84dc81 #55 - Polishing.
Minor changes to documentation in order to avoid <literal code>``s constructs as recommended by our style guide.

Original pull request: #125.
2019-05-22 14:22:07 +02:00
Mark Paluch
1b63fb634d #55 - Update documentation.
Original pull request: #125.
2019-05-22 14:21:58 +02:00
Mark Paluch
e03d1dc8ee #55 - Polishing.
Original pull request: #125.
2019-05-22 14:21:52 +02:00
Mark Paluch
32f1770529 #55 - Reuse Dialect support provided by Spring Data Relational.
We now reuse the existing Dialect infrastructure provided by Spring Data Relational to enhance it for R2DBC specifics such as bind markers.

Original pull request: #125.
2019-05-22 14:21:43 +02:00
Mark Paluch
46082147d3 #69 - Allow object creation with a subset of columns.
We now allow object creation when not all columns are present by leveraging R2DBC RowMetadata. A column subset is necessary for projections.
2019-05-22 09:41:23 +02:00
Mark Paluch
972bc09606 #122 - Polishing.
Add extension for UpdateTableSpec.table. Add tests. Formatting.

Original pull request: #123.
2019-05-21 15:53:18 +02:00
Jonas Bark
9bcaa24707 #122 - Improve Kotlin extensions for CriteriaStep and DatabaseClient.
Original pull request: #123.
2019-05-21 15:53:08 +02:00
Mark Paluch
8b77aa9431 #89 - Accept SQL directly in DatabaseClient.execute(…) stage.
We compressed client.execute().sql(…) to client.execute(…) to not require the intermediate execute() step but rather accept the SQL to execute directly.

Original pull request: #112.
2019-05-21 14:02:45 +02:00
Ohad Shai
36c4c1d062 #120 - Fix link text for jasync-sql.
Original pull request: #120.
2019-05-19 13:44:58 +02:00
Mark Paluch
5714709d71 #30 - Polishing.
Fix custom converter documentation. Accept custom converters in DefaultReactiveDataAccessStrategy constructor.
2019-05-17 23:28:03 +02:00
Mark Paluch
14e2a3722b #118 - Upgrade to jasync-r2dbc-mysql 0.9.52. 2019-05-15 15:25:03 +02:00
Mark Paluch
d23dcd0d2c #37 - After release cleanups. 2019-05-14 10:39:33 +02:00
Mark Paluch
b7d5091635 #37 - Prepare next development iteration. 2019-05-14 10:39:32 +02:00
Mark Paluch
6ea15325e3 #37 - Release version 1.0 M2. 2019-05-14 10:31:52 +02:00
Mark Paluch
cbead6ea19 #37 - Prepare 1.0 M2. 2019-05-14 10:31:50 +02:00