Migrated source documentation to doc.jdb-labs.com.
This commit is contained in:
parent
f551165a82
commit
58b00cbdb0
8
README.md
Normal file
8
README.md
Normal file
@ -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/).
|
@ -5,8 +5,7 @@ import com.jdbernard.nlsongs.model.*
|
|||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
|
|
||||||
sdf = new SimpleDateFormat('yyyy-MM-dd')
|
sdf = new SimpleDateFormat('yyyy-MM-dd')
|
||||||
hcfg = new
|
hcfg = new HikariConfig("/home/jdbernard/projects/new-life-songs/src/main/webapp/WEB-INF/classes/datasource.properties")
|
||||||
HikariConfig("/home/jdbernard/projects/new-life-songs/src/main/webapp/WEB-INF/classes/datasource.properties")
|
|
||||||
|
|
||||||
makeService = { svcRow ->
|
makeService = { svcRow ->
|
||||||
Service svc = new Service()
|
Service svc = new Service()
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
package com.jdbernard.nlsongs.db
|
|
||||||
|
|
||||||
public class GenerateQueries {
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Map<String, Map<String, String> > 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.
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
#Tue Apr 14 15:48:15 CDT 2015
|
#Tue May 12 20:51:08 CDT 2015
|
||||||
major=2
|
major=2
|
||||||
version.release=false
|
version.release=true
|
||||||
minor=3
|
minor=3
|
||||||
build=0
|
build=0
|
||||||
|
Loading…
Reference in New Issue
Block a user