+
Skip to content

Release v3.4.0 #277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 106 commits into from
May 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
2c52178
Adding returning to single insert or update query
FeatureSpitter Jan 9, 2021
f1a887d
Adding respective bulk operations
FeatureSpitter Jan 9, 2021
b3a220c
Fixing code format
FeatureSpitter Jan 9, 2021
569b5b7
Fixing end of sentence
FeatureSpitter Jan 9, 2021
a224860
Fixing accidental change in test
FeatureSpitter Jan 10, 2021
157f581
Making function names consistent
FeatureSpitter Jan 10, 2021
7cfc55c
Removing redundant expressions
FeatureSpitter Jan 20, 2021
25852c3
Adding static access overloads to modified methods
FeatureSpitter Jan 25, 2021
b556513
FeatureSpitter Jan 25, 2021
f25d216
use value semantics in Entity equals/hashCode
Jan 25, 2021
96f6b48
added self to dev info
Jan 25, 2021
8bf327e
resolved detekt style issue
Jan 25, 2021
2d50a56
Hiding magic numbers
FeatureSpitter Jan 26, 2021
bdb8286
Merge pull request #242 from efenderbosch/master
vincentlauvlwj Jan 29, 2021
b297540
Merge pull request #233 from PedroD/adding-insert-or-update-retrievin…
vincentlauvlwj Jan 29, 2021
343170d
dialect specific for update options for mysql and postgres
Feb 5, 2021
92a0f88
cleaned up UnsupportedMySqlVersionException
Feb 5, 2021
fc670a2
renamed visitForUpdate -> writeForUpdate to match writePagination
Feb 5, 2021
dfd9d58
renamed ForUpdateExpression to ForUpdateOption
Feb 5, 2021
58a1d8f
throw DialectFeatureNotSupportedException instead of no-op when diale…
Feb 5, 2021
5c5aa90
basic for update options for Oracle and SqlServer; formatting
Feb 5, 2021
893803a
minor typo in comment
Feb 5, 2021
db764ad
better comment on ForUpdateOption
Feb 5, 2021
ed418ac
implemented Postgres for update as described in postgresql.org docs
Feb 5, 2021
366399f
minor clean up
Feb 5, 2021
fc5368e
fix typo in comment and update to explain new forUpdate behavior
Feb 5, 2021
0f17096
use database.productVersion instead of getting a new connection for m…
Feb 8, 2021
368b0db
made ForUpdateOption non-nullable; update testcontainers and detekt d…
Feb 8, 2021
eff9ef1
merge upstread master
Feb 15, 2021
ac79dfc
Merge branch 'master' into v3.4.x
vincentlauvlwj Feb 28, 2021
93ab10d
Merge pull request #247 from efenderbosch/forUpdate
vincentlauvlwj Feb 28, 2021
a7303e4
Adding explicit do-nothing to on-conflict clauses
FeatureSpitter Mar 5, 2021
21d00cd
Adding remaining documentation
FeatureSpitter Mar 5, 2021
0ee0f38
Adding forgotten error messages
FeatureSpitter Mar 5, 2021
b998f10
merge #255
vincentlauvlwj Mar 13, 2021
dd311a9
Fixing limit scenario of queries with millions of parameters
FeatureSpitter Apr 23, 2021
73b4b1a
Merge pull request #276 from PedroD/fix/bulk-operation-pgsql
vincentlauvlwj Apr 24, 2021
f1691b2
rm forUpdate from core module
vincentlauvlwj Apr 24, 2021
4a91021
mysql select for update
vincentlauvlwj Apr 24, 2021
2f34363
rm forUpdate() for oracle & sqlserver
vincentlauvlwj Apr 24, 2021
4b99d0a
postgresql locking clause
vincentlauvlwj Apr 25, 2021
14a6419
locking strength => locking mode
vincentlauvlwj Apr 25, 2021
314d729
fix compile error
vincentlauvlwj Apr 25, 2021
5877491
mysql locking clause
vincentlauvlwj Apr 25, 2021
d765fe9
fix tests
vincentlauvlwj Apr 26, 2021
cc65de4
use postgresql table alias for locking
vincentlauvlwj Apr 26, 2021
57cb9f1
use mysql table alias for locking
vincentlauvlwj Apr 26, 2021
a440ecb
deprecate forUpdate()
vincentlauvlwj Apr 26, 2021
a09c5e0
fix typo
vincentlauvlwj Apr 26, 2021
7f65653
entity equals & hashcode
vincentlauvlwj Apr 26, 2021
10b9d43
Merge branch 'master' into v3.4.x
vincentlauvlwj Apr 26, 2021
d35501b
update code style
vincentlauvlwj Apr 26, 2021
f03ab83
rm bulk chunking
vincentlauvlwj Apr 26, 2021
d435f72
refactor insert or update
vincentlauvlwj Apr 27, 2021
971dbe0
refactor insert or update returning
vincentlauvlwj Apr 27, 2021
9ad9f73
refactor insert or update returning
vincentlauvlwj Apr 27, 2021
e098bcd
insert returning
vincentlauvlwj Apr 27, 2021
d30975f
fix typo
vincentlauvlwj Apr 27, 2021
bda88aa
refactor bulk insert
vincentlauvlwj Apr 27, 2021
44247ec
refactor bulk insert returning
vincentlauvlwj Apr 27, 2021
f177719
refactor bulk insert returning
vincentlauvlwj Apr 28, 2021
1723554
fix typo
vincentlauvlwj Apr 28, 2021
f1720b3
refactor bulk insert or update returning
vincentlauvlwj Apr 28, 2021
e3a7a14
insert or update returning row
vincentlauvlwj Apr 28, 2021
e490a35
insert returning row
vincentlauvlwj Apr 28, 2021
ddf8680
bulk insert returning row set
vincentlauvlwj Apr 28, 2021
cbee889
update code style
vincentlauvlwj Apr 28, 2021
fddce19
rm doNothing
vincentlauvlwj Apr 28, 2021
c2a4020
update postgresql formatter
vincentlauvlwj Apr 28, 2021
d8a79c9
fix tests
vincentlauvlwj Apr 29, 2021
f2189da
fix insert or update returning row
vincentlauvlwj Apr 29, 2021
dd9809a
fix detekt rule
vincentlauvlwj Apr 29, 2021
5c661d7
fix detekt rule
vincentlauvlwj Apr 29, 2021
fc8c939
rm unused constants
vincentlauvlwj Apr 29, 2021
23ca9ea
reproduce #252
vincentlauvlwj Apr 29, 2021
473f5c6
full compatible with jsr310 #252
vincentlauvlwj Apr 29, 2021
8fdb330
compatible with unsigned types
vincentlauvlwj Apr 29, 2021
67bf796
fix #253
vincentlauvlwj May 1, 2021
56a296c
support inline class json serialization #253
vincentlauvlwj May 2, 2021
3913e22
rm unused lines
vincentlauvlwj May 2, 2021
a7e80da
fix postgresql json bug #268
vincentlauvlwj May 2, 2021
f9b7e5b
deprecate pgEnum
vincentlauvlwj May 2, 2021
01f96f4
mysql test enum
vincentlauvlwj May 2, 2021
21876d6
fix null-skipped bug for insertion #273
vincentlauvlwj May 2, 2021
9879cf3
fix warning
vincentlauvlwj May 2, 2021
0e217fe
fix error text
vincentlauvlwj May 2, 2021
6bcc17c
refactor pom structure
vincentlauvlwj May 3, 2021
1a29957
test ci
vincentlauvlwj May 4, 2021
c323aea
migrate from jcenter to maven central
vincentlauvlwj May 4, 2021
144e082
auto upload snapshots
vincentlauvlwj May 4, 2021
84e7e03
update version
vincentlauvlwj May 4, 2021
5369da9
update signing requirement
vincentlauvlwj May 4, 2021
53d8422
update version
vincentlauvlwj May 4, 2021
16fd975
add comments for equals & hashCode
vincentlauvlwj May 5, 2021
d2547bd
fix comment
vincentlauvlwj May 5, 2021
c2b34ce
update comments for entity attachment
vincentlauvlwj May 5, 2021
c649e14
update detekt rule
vincentlauvlwj May 5, 2021
c4efbc8
add test for jvm-default
vincentlauvlwj May 6, 2021
222762d
Merge branch 'v3.4.x' of https://github.com/vincentlauvlwj/Ktorm into…
vincentlauvlwj May 6, 2021
9dc39ac
fix comment syntax
vincentlauvlwj May 6, 2021
306c8bc
Merge branch 'v3.4.x' of https://github.com/vincentlauvlwj/Ktorm into…
vincentlauvlwj May 6, 2021
a7c287c
fix null enum bug
vincentlauvlwj May 9, 2021
35113b3
fix null json bug
vincentlauvlwj May 9, 2021
c1723e4
rm jcenter words
vincentlauvlwj May 9, 2021
5393d6d
fix expression visitor
vincentlauvlwj May 9, 2021
19e425a
release v3.4.0
vincentlauvlwj May 9, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ env:
# - psql -c "create database ktorm;" -U postgres

after_success:
- chmod +x auto-upload.sh
- ./auto-upload.sh
- ./gradlew publishDistPublicationToSnapshotRepository

before_cache:
- rm -f "${HOME}/.gradle/caches/modules-2/modules-2.lock"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ For more documentation, go to our site: [https://www.ktorm.org](https://www.ktor

# Quick Start

Ktorm was deployed to maven central and jcenter, so you just need to add a dependency to your `pom.xml` file if you are using maven:
Ktorm was deployed to maven central, so you just need to add a dependency to your `pom.xml` file if you are using maven:

```xml
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Ktorm 是直接基于纯 JDBC 编写的高效简洁的轻量级 Kotlin ORM 框

# 快速开始

Ktorm 已经发布到 maven 中央仓库和 jcenter,因此,如果你使用 maven 的话,只需要在 `pom.xml` 文件里面添加一个依赖:
Ktorm 已经发布到 maven 中央仓库,因此,如果你使用 maven 的话,只需要在 `pom.xml` 文件里面添加一个依赖:

```xml
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion README_jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Ktormは純粋なJDBCをベースにしたKotlin用の軽量で効率的なORM

# クイックスタート

Ktormはmaven centralとjcenterにデプロイされているので、mavenを使っている場合は `pom.xml` ファイルに依存関係を追加するだけです。
Ktormはmaven centralにデプロイされているので、mavenを使っている場合は `pom.xml` ファイルに依存関係を追加するだけです。

```xml
<dependency>
Expand Down
10 changes: 0 additions & 10 deletions auto-upload.sh

This file was deleted.

93 changes: 49 additions & 44 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,34 +1,33 @@

buildscript {
ext {
kotlinVersion = "1.4.21"
detektVersion = "1.12.0-RC1"
kotlinVersion = "1.4.32"
detektVersion = "1.17.0-RC2"
}
repositories {
jcenter()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${detektVersion}"
}
}

allprojects {
group = "org.ktorm"
version = "3.3.0"
version = "3.4.0"
}

subprojects { project ->
apply plugin: "kotlin"
apply plugin: "signing"
apply plugin: "maven-publish"
apply plugin: "com.jfrog.bintray"
apply plugin: "io.gitlab.arturbosch.detekt"
apply from: "${project.rootDir}/check-source-header.gradle"

repositories {
jcenter()
mavenCentral()
}

dependencies {
Expand All @@ -47,7 +46,7 @@ subprojects { project ->
]
}

task generateSourcesJar(type: Jar) {
task generateSources(type: Jar) {
archiveClassifier = "sources"
from sourceSets.main.allSource
}
Expand All @@ -58,34 +57,36 @@ subprojects { project ->

detekt {
toolVersion = detektVersion
input = files("src/main/kotlin")
config = files("${project.rootDir}/detekt.yml")
reports {
xml.enabled = false
html.enabled = false
}
}

publishing {
publications {
bintray(MavenPublication) {
dist(MavenPublication) {
from components.java
artifact generateSourcesJar
artifact generateSources
artifact generateJavadoc

groupId project.group
artifactId project.name
version project.version
groupId = project.group
artifactId = project.name
version = project.version

pom {
name = project.name
name = "${project.group}:${project.name}"
description = "A lightweight ORM Framework for Kotlin with strong typed SQL DSL and sequence APIs."
url = "https://github.com/kotlin-orm/ktorm"
url = "https://www.ktorm.org"
licenses {
license {
name = "The Apache Software License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
scm {
url = "https://github.com/kotlin-orm/ktorm"
connection = "scm:git:https://github.com/kotlin-orm/ktorm.git"
developerConnection = "scm:git:ssh://git@github.com/kotlin-orm/ktorm.git"
}
developers {
developer {
id = "vincentlauvlwj"
Expand Down Expand Up @@ -162,41 +163,45 @@ subprojects { project ->
name = "Pedro Domingues"
email = "pedro.domingues.pt@gmail.com"
}
}
scm {
url = "https://github.com/kotlin-orm/ktorm.git"
developer {
id = "efenderbosch"
name = "Eric Fenderbosch"
email = "eric@fender.net"
}
}
}
}
}
}

bintray {
user = System.getenv("BINTRAY_USER")
key = System.getenv("BINTRAY_KEY")
publications = ["bintray"]
publish = true

pkg {
repo = "ktorm"
name = project.name
licenses = ["Apache-2.0"]
vcsUrl = "https://github.com/kotlin-orm/ktorm.git"
labels = ["Kotlin", "ORM", "SQL"]

version {
name = project.version
released = new Date()
vcsTag = project.version

mavenCentralSync {
sync = false
user = System.getenv("OSSRH_USER")
repositories {
maven {
name = "central"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username = System.getenv("OSSRH_USER")
password = System.getenv("OSSRH_PASSWORD")
}
}
maven {
name = "snapshot"
url = "https://oss.sonatype.org/content/repositories/snapshots"
credentials {
username = System.getenv("OSSRH_USER")
password = System.getenv("OSSRH_PASSWORD")
}
}
}
}

signing {
def keyId = System.getenv("GPG_KEY_ID")
def secretKey = System.getenv("GPG_SECRET_KEY")
def password = System.getenv("GPG_PASSWORD")

required { !project.version.endsWith("SNAPSHOT") }
useInMemoryPgpKeys(keyId, secretKey, password)
sign publishing.publications.dist
}
}

task printClasspath() {
Expand Down
12 changes: 5 additions & 7 deletions detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ console-reports:
comments:
active: true
CommentOverPrivateFunction:
active: true
active: false
CommentOverPrivateProperty:
active: true
active: false
EndOfSentenceFormat:
active: true
endOfSentenceFormat: ([.?!][ \t\n\r\f<])|([.?!]$)
Expand All @@ -50,7 +50,7 @@ complexity:
threshold: 4
ComplexInterface:
active: true
threshold: 11
threshold: 12
includeStaticDeclarations: false
ComplexMethod:
active: true
Expand Down Expand Up @@ -192,8 +192,7 @@ formatting:
ImportOrdering:
active: false
Indentation:
# Temporarily disable the indentation rule as it doesn't work after upgrading detekt. https://github.com/detekt/detekt/issues/2970
active: false
active: true
autoCorrect: false
indentSize: 4
continuationIndentSize: 4
Expand Down Expand Up @@ -242,7 +241,6 @@ formatting:
active: true
autoCorrect: false
ParameterListWrapping:
# Temporarily disable this rule as it doesn't work after upgrading detekt. https://github.com/detekt/detekt/issues/2970
active: false
autoCorrect: false
indentSize: 4
Expand Down Expand Up @@ -411,7 +409,7 @@ style:
maxJumpCount: 2
MagicNumber:
active: true
ignoreNumbers: '-1,0,1,2'
ignoreNumbers: '-1,0,1,2,3'
ignoreHashCodeFunction: true
ignorePropertyDeclaration: false
ignoreConstantDeclaration: true
Expand Down
1 change: 1 addition & 0 deletions ktorm-core/ktorm-core.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies {
compileOnly "com.google.android:android:1.5_r4"
compileOnly "org.springframework:spring-jdbc:5.0.10.RELEASE"
compileOnly "org.springframework:spring-tx:5.0.10.RELEASE"
compileOnly "org.postgresql:postgresql:42.2.5"
testImplementation "com.h2database:h2:1.4.197"
}

Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载