yhornisse authored on 12 May 2020
gradle/ wrapper Add Sample. 4 years ago
src/ main Remove unused import statements. 4 years ago
README.md Fix build settings 4 years ago
build.gradle.kts Fix build settings 4 years ago
gradle.properties Add Sample. 4 years ago
gradlew Add Sample. 4 years ago
gradlew.bat Add Sample. 4 years ago
settings.gradle.kts Fix build settings 4 years ago
README.md

そのまま実行(UNIX系OSやMacの場合)

$ ./gradlew bootRun

Fat Jar作成(UNIX系OSやMacの場合)

$ ./gradlew bootJar

Fat Jarを実行

$ java -jar build/libs/SampleKotlin-1.0-SNAPSHOT.jar

/tmp/hoge.dbの中身

sqlite> .schema
CREATE TABLE book(id, book_name, author_name);
sqlite> SELECT * FROM book;
0|hoge|taro
1|fuga|taro
sqlite>