diff --git a/README.md b/README.md new file mode 100644 index 0000000..85e1ead --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# New Life Songs Database + +This is Jonathan's database of worship songs performed at New Life Austin. The +service lives online at http://newlifesongs.jdbernard.com + +API Documentation is [maintained online with the service](http://newlifesongs.jdbernard.com/doc/api/v1/). + +You can also view the [annotated source code](https://doc.jdb-labs.com/new-life-songs/current/). diff --git a/src/migration/migrate.groovy b/src/migration/migrate.groovy index c7bf6f0..9e35bbd 100644 --- a/src/migration/migrate.groovy +++ b/src/migration/migrate.groovy @@ -5,8 +5,7 @@ import com.jdbernard.nlsongs.model.* import java.text.SimpleDateFormat sdf = new SimpleDateFormat('yyyy-MM-dd') -hcfg = new -HikariConfig("/home/jdbernard/projects/new-life-songs/src/main/webapp/WEB-INF/classes/datasource.properties") +hcfg = new HikariConfig("/home/jdbernard/projects/new-life-songs/src/main/webapp/WEB-INF/classes/datasource.properties") makeService = { svcRow -> Service svc = new Service() diff --git a/src/tools/groovy/com/jdbernard/nlsongs/db/GenerateQueries.groovy b/src/tools/groovy/com/jdbernard/nlsongs/db/GenerateQueries.groovy deleted file mode 100644 index 93148e4..0000000 --- a/src/tools/groovy/com/jdbernard/nlsongs/db/GenerateQueries.groovy +++ /dev/null @@ -1,32 +0,0 @@ -package com.jdbernard.nlsongs.db - -public class GenerateQueries { - - public static void main(String[] args) { - - } - - public static Map > generateQueries(String ddl) { - - def tables = [:] - - // Find the table definitions - String tableRegex = /(?ms)(?:CREATE TABLE (?:IF NOT EXISTS )?([^\s]+) \(([^\s]+);.+?)+/ - - ddl.eachMatch(tableRegex) { matchGroups -> - String tableName = matchGroups[1] - - // Parse the column definitions. - - // Create new record insert statements. - - // Create insert queries. - - // Create update queries. - - // Create delete queries. - - // Create ID lookup queries. - - } -} diff --git a/version.properties b/version.properties index 1298751..1607294 100644 --- a/version.properties +++ b/version.properties @@ -1,6 +1,6 @@ # -#Tue Apr 14 15:48:15 CDT 2015 +#Tue May 12 20:51:08 CDT 2015 major=2 -version.release=false +version.release=true minor=3 build=0