Skip to content

Commit c042c07

Browse files
update readme
1 parent 11241fb commit c042c07

File tree

2 files changed

+27
-30
lines changed

2 files changed

+27
-30
lines changed

README.ja.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
uroboroSQL
44
==========
55

6-
<img src="https://future-architect.github.io/uroborosql-doc//images/logo.png" style="max-width: 600px;" alt="uroboroSQL" />
6+
<img src="https://future-architect.github.io/uroborosql-doc/images/logo.png" style="max-width: 600px;" alt="uroboroSQL" />
77

8-
uroboroSQLは、Java8対応の2Way-SQLが利用可能なシンプルなSQL実行ライブラリです。
8+
uroboroSQLは、Java11対応の2Way-SQLが利用可能なシンプルなSQL実行ライブラリです。
99

1010
uroboroSQLは主にSQL中心の設計コンセプトを採用しています。Javaを中心に考えてSQLを組み立てるという思想ではなく、SQLに足りないところをJavaで補うという思想です。
1111

@@ -77,34 +77,32 @@ compile group: 'ognl', name: 'ognl', version: '3.1.23'
7777
/* department/select_department.sql */
7878

7979
SELECT /* _SQL_ID_ */
80-
DEPT.DEPT_NO AS DEPT_NO
80+
DEPT.DEPT_NO AS DEPT_NO
8181
, DEPT.DEPT_NAME AS DEPT_NAME
8282
FROM
83-
DEPARTMENT DEPT
83+
DEPARTMENT DEPT
8484
WHERE
85-
1 = 1
86-
/*IF SF.isNotEmpty(dept_no)*/
87-
AND DEPT.DEPT_NO = /*dept_no*/1
85+
1 = 1
86+
/*IF SF.isNotEmpty(deptNo)*/
87+
AND DEPT.DEPT_NO = /*deptNo*/1
8888
/*END*/
89-
/*IF SF.isNotEmpty(dept_name)*/
90-
AND DEPT.DEPT_NAME = /*dept_name*/'sample'
89+
/*IF SF.isNotEmpty(deptName)*/
90+
AND DEPT.DEPT_NAME = /*deptName*/'sample'
9191
/*END*/
92-
9392
```
9493

9594
```sql
9695
/* department/insert_department.sql */
9796

98-
INSERT
99-
/* _SQL_ID_ */
97+
INSERT /* _SQL_ID_ */
10098
INTO
10199
DEPARTMENT
102100
(
103101
DEPT_NO
104102
, DEPT_NAME
105103
) VALUES (
106-
/*dept_no*/1
107-
, /*dept_name*/'sample'
104+
/*deptNo*/1
105+
, /*deptName*/'sample'
108106
)
109107
```
110108

@@ -115,13 +113,13 @@ SqlConfig config = UroboroSQL.builder("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1", "sa"
115113
try (SqlAgent agent = config.agent()) {
116114
// SELECT
117115
List<Map<String, Object>> departments = agent.query("department/select_department")
118-
.param("dept_no", 1001)
116+
.param("deptNo", 1001)
119117
.collect();
120118

121119
// INSERT
122120
int count = agent.update("department/insert_department")
123-
.param("dept_no", 1001)
124-
.param("dept_name", "sales")
121+
.param("deptNo", 1001)
122+
.param("deptName", "sales")
125123
.count();
126124
}
127125
```

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
uroboroSQL
44
==========
55

6-
<img src="https://future-architect.github.io/uroborosql-doc//images/logo.png" style="max-width: 600px;" alt="uroboroSQL" />
6+
<img src="https://future-architect.github.io/uroborosql-doc/images/logo.png" style="max-width: 600px;" alt="uroboroSQL" />
77

8-
UroboroSQL is a simple SQL execution library that can utilize 2-way-SQL compatible with Java 8.
8+
UroboroSQL is a simple SQL execution library that can utilize 2-way-SQL compatible with Java 11.
99

1010
UroboroSQL mainly adopts a SQL-centered design concept. The concept does not focus on Java to assemble SQL, but is based on an idea of making up for weaknesses of SQL with Java.
1111

@@ -85,28 +85,27 @@ FROM
8585
DEPARTMENT DEPT
8686
WHERE
8787
1 = 1
88-
/*IF SF.isNotEmpty(dept_no)*/
89-
AND DEPT.DEPT_NO = /*dept_no*/1
88+
/*IF SF.isNotEmpty(deptNo)*/
89+
AND DEPT.DEPT_NO = /*deptNo*/1
9090
/*END*/
91-
/*IF SF.isNotEmpty(dept_name)*/
92-
AND DEPT.DEPT_NAME = /*dept_name*/'sample'
91+
/*IF SF.isNotEmpty(deptName)*/
92+
AND DEPT.DEPT_NAME = /*deptName*/'sample'
9393
/*END*/
9494

9595
```
9696

9797
```sql
9898
/* department/insert_department.sql */
9999

100-
INSERT
101-
/* _SQL_ID_ */
100+
INSERT /* _SQL_ID_ */
102101
INTO
103102
DEPARTMENT
104103
(
105104
DEPT_NO
106105
, DEPT_NAME
107106
) VALUES (
108-
/*dept_no*/1
109-
, /*dept_name*/'sample'
107+
/*deptNo*/1
108+
, /*deptName*/'sample'
110109
)
111110
```
112111

@@ -117,13 +116,13 @@ SqlConfig config = UroboroSQL.builder("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1", "sa"
117116
try (SqlAgent agent = config.agent()) {
118117
// SELECT
119118
List<Map<String, Object>> departments = agent.query("department/select_department")
120-
.param("dept_no", 1001)
119+
.param("deptNo", 1001)
121120
.collect();
122121

123122
// INSERT
124123
int count = agent.update("department/insert_department")
125-
.param("dept_no", 1001)
126-
.param("dept_name", "sales")
124+
.param("deptNo", 1001)
125+
.param("deptName", "sales")
127126
.count();
128127
}
129128
```

0 commit comments

Comments
 (0)