Created
November 20, 2014 09:35
-
-
Save kyonmm/a0c407c7294d6512a7a4 to your computer and use it in GitHub Desktop.
C:\Users\hoge\AppData\Local\Evernote test 201411
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab('org.xerial:sqlite-jdbc:[3.7.2,)') | |
@GrabConfig(systemClassLoader=true) | |
import groovy.sql.Sql | |
def home = args[0] | |
def tag = args[1] | |
def date = args[2] | |
Class.forName("org.sqlite.SQLite") | |
sql = Sql.newInstance("jdbc:sqlite:${home}/Evernote/Evernote/Databases/orangeclover.exb", "org.sqlite.JDBC") | |
sql.eachRow("SELECT title,source_url FROM note_attr WHERE notebook COLLATE NOCASE LIKE '${date}' AND (tags LIKE '%${tag}%');"){ | |
println "[ ${it.source_url}:title=${it.title}]" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment