feat: 正式版发布

This commit is contained in:
wangyu 2024-07-13 13:54:50 +08:00
parent f0b48ba785
commit e5b2fba283
9 changed files with 27 additions and 23 deletions

View File

@ -5,14 +5,14 @@
<parent> <parent>
<artifactId>fluent-sql</artifactId> <artifactId>fluent-sql</artifactId>
<groupId>group.flyfish.framework</groupId> <groupId>group.flyfish.framework</groupId>
<version>0.1.0</version> <version>1.0.0</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>fluent-sql-annotations</artifactId> <artifactId>fluent-sql-annotations</artifactId>
<properties> <properties>
<maven.compiler.source>8</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
</properties> </properties>
</project> </project>

View File

@ -5,15 +5,15 @@
<parent> <parent>
<artifactId>fluent-sql</artifactId> <artifactId>fluent-sql</artifactId>
<groupId>group.flyfish.framework</groupId> <groupId>group.flyfish.framework</groupId>
<version>0.1.0</version> <version>1.0.0</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>fluent-sql-core</artifactId> <artifactId>fluent-sql-core</artifactId>
<properties> <properties>
<maven.compiler.source>8</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
</properties> </properties>
<dependencies> <dependencies>

View File

@ -369,7 +369,7 @@ final class SQLImpl extends ConcatSegment<SQLImpl> implements SQLOperations, Pre
} }
@Override @Override
public Mono<Integer> execute() { public Mono<Long> execute() {
return SHARED_REACTIVE_OPERATIONS.execute(entity); return SHARED_REACTIVE_OPERATIONS.execute(entity);
} }
} }

View File

@ -44,5 +44,5 @@ public interface ReactiveBoundEntitySpec<T> {
* *
* @return 更新行数 * @return 更新行数
*/ */
Mono<Integer> execute(); Mono<Long> execute();
} }

View File

@ -2,7 +2,6 @@ package group.flyfish.fluent.operations;
import group.flyfish.fluent.entity.BoundSQLEntity; import group.flyfish.fluent.entity.BoundSQLEntity;
import group.flyfish.fluent.entity.DataPage; import group.flyfish.fluent.entity.DataPage;
import group.flyfish.fluent.entity.SQLEntity;
import org.springframework.lang.Nullable; import org.springframework.lang.Nullable;
import reactor.core.publisher.Flux; import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
@ -50,5 +49,5 @@ public interface ReactiveFluentSQLOperations {
* @param entity sql实体 * @param entity sql实体
* @return 更新行数 * @return 更新行数
*/ */
<T> Mono<Integer> execute(BoundSQLEntity<T> entity); <T> Mono<Long> execute(BoundSQLEntity<T> entity);
} }

View File

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>fluent-sql</artifactId> <artifactId>fluent-sql</artifactId>
<groupId>group.flyfish.framework</groupId> <groupId>group.flyfish.framework</groupId>
<version>0.1.0</version> <version>1.0.0</version>
</parent> </parent>
<description>spring boot 快速集成组件</description> <description>spring boot 快速集成组件</description>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
@ -13,8 +13,8 @@
<artifactId>fluent-sql-spring-boot-starter</artifactId> <artifactId>fluent-sql-spring-boot-starter</artifactId>
<properties> <properties>
<maven.compiler.source>8</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
</properties> </properties>
<dependencies> <dependencies>

View File

@ -5,15 +5,15 @@
<parent> <parent>
<artifactId>fluent-sql</artifactId> <artifactId>fluent-sql</artifactId>
<groupId>group.flyfish.framework</groupId> <groupId>group.flyfish.framework</groupId>
<version>0.1.0</version> <version>1.0.0</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>fluent-sql-spring</artifactId> <artifactId>fluent-sql-spring</artifactId>
<properties> <properties>
<maven.compiler.source>8</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
</properties> </properties>
<dependencies> <dependencies>
@ -49,7 +49,6 @@
<dependency> <dependency>
<groupId>io.asyncer</groupId> <groupId>io.asyncer</groupId>
<artifactId>r2dbc-mysql</artifactId> <artifactId>r2dbc-mysql</artifactId>
<version>0.9.7</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -61,7 +61,7 @@ public class R2dbcFluentSQLOperations implements ReactiveFluentSQLOperations {
* @return 更新行数 * @return 更新行数
*/ */
@Override @Override
public <T> Mono<Integer> execute(BoundSQLEntity<T> entity) { public <T> Mono<Long> execute(BoundSQLEntity<T> entity) {
return resolve(entity).fetch().rowsUpdated(); return resolve(entity).fetch().rowsUpdated();
} }

16
pom.xml
View File

@ -7,7 +7,7 @@
<groupId>group.flyfish.framework</groupId> <groupId>group.flyfish.framework</groupId>
<artifactId>fluent-sql</artifactId> <artifactId>fluent-sql</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>0.1.0</version> <version>1.0.0</version>
<name>fluent-sql</name> <name>fluent-sql</name>
<description>A very fast sql generation engine using fluent-style api. Help you start your work without mybatis</description> <description>A very fast sql generation engine using fluent-style api. Help you start your work without mybatis</description>
@ -35,12 +35,12 @@
</modules> </modules>
<properties> <properties>
<maven.compiler.source>8</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
<lombok.version>1.18.24</lombok.version> <lombok.version>1.18.24</lombok.version>
<jackson.version>2.17.2</jackson.version> <jackson.version>2.17.2</jackson.version>
<spring-boot.version>2.7.18</spring-boot.version> <spring-boot.version>3.3.1</spring-boot.version>
<spring.version>5.3.22</spring.version> <spring.version>6.1.10</spring.version>
</properties> </properties>
<!-- 开发人员信息 --> <!-- 开发人员信息 -->
@ -158,6 +158,12 @@
<version>8.0.29</version> <version>8.0.29</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>io.asyncer</groupId>
<artifactId>r2dbc-mysql</artifactId>
<version>1.1.3</version>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>io.projectreactor</groupId> <groupId>io.projectreactor</groupId>
<artifactId>reactor-core</artifactId> <artifactId>reactor-core</artifactId>