Skip to content

taejun-lifelongjourney/gradle-sql-runner-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gradle-sql-runner-task

contains a custom task implementation for sql-execution using jdbc driver and a gradle task definition that execute sql to use it!

#usage

gradle executeSql \
	-PconnectionPropertyXml=path/to/connectionPropertyXml.xml \
	-Psql=path/to/sql/statement.sql

#connectionPropertyXml sample

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
	<entry key="jdbc.url">jdbc:mysql://localhost:3306/mydb?useUnicode=true&amp;characterEncoding=UTF8&amp;connectTimeout=5000&amp;socketTimeout=6000</entry>
	<entry key="jdbc.username">username</entry>
	<entry key="jdbc.password">password</entry>
	<entry key="jdbc.driver">com.mysql.jdbc.Driver</entry>
</properties>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages