提交 ad411168 编写于 作者: Z zyyang

change

上级 70f716a6
......@@ -9,16 +9,16 @@ import java.util.Map;
public interface DatabaseMapper {
// create database if not exists XXX
int createDatabase(@Param("dbname") String dbname);
int createDatabase(@Param("database") String dbname);
// drop database if exists XXX
int dropDatabase(@Param("dbname") String dbname);
int dropDatabase(@Param("database") String dbname);
// create database if not exists XXX keep XX days XX replica XX
int createDatabaseWithParameters(Map<String, String> map);
// use XXX
int useDatabase(@Param("dbname") String dbname);
int useDatabase(@Param("database") String dbname);
//TODO: alter database
......
......@@ -5,15 +5,15 @@
<!-- create database XXX -->
<update id="createDatabase" parameterType="java.lang.String">
create database if not exists ${dbname}
create database if not exists ${database}
</update>
<update id="dropDatabase" parameterType="java.lang.String">
DROP database if exists ${dbname}
DROP database if exists ${database}
</update>
<update id="createDatabaseWithParameters" parameterType="map">
CREATE database if not exists ${dbname}
CREATE database if not exists ${database}
<if test="keep != null">
KEEP ${keep}
</if>
......@@ -38,7 +38,7 @@
</update>
<update id="useDatabase" parameterType="java.lang.String">
use ${dbname}
use ${database}
</update>
<!-- TODO: alter database -->
......
spring.datasource.url=jdbc:mysql://master:3306/?useSSL=false&useUnicode=true&characterEncoding=UTF-8
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.url=jdbc:mysql://master:3306/?useSSL=false&useUnicode=true&characterEncoding=UTF-8
#spring.datasource.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.username=root
#spring.datasource.password=123456
spring.datasource.url=jdbc:TAOS://master:6030/?charset=UTF-8&locale=en_US.UTF-8&timezone=UTC-8
spring.datasource.driver-class-name=com.taosdata.jdbc.TSDBDriver
spring.datasource.username=root
spring.datasource.password=123456
spring.datasource.password=taosdata
spring.datasource.hikari.maximum-pool-size=10
spring.datasource.hikari.minimum-idle=10
spring.datasource.hikari.max-lifetime=600000
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册