Path: csiph.com!news.redatomik.org!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: Which databases are the most used with Java Date: Thu, 17 Aug 2017 18:16:58 -0400 Organization: Aioe.org NNTP Server Lines: 21 Message-ID: References: <87y3qovwjb.fsf@munus.decebal.nl> <87tw1bx2c9.fsf@munus.decebal.nl> <87a833wzcx.fsf@munus.decebal.nl> <87pobz9yv5.fsf@munus.decebal.nl> <87h8x9pfi8.fsf@munus.decebal.nl> <87mv70n5pd.fsf@munus.decebal.nl> <87k222lloh.fsf@munus.decebal.nl> NNTP-Posting-Host: PBuS014lhzVyHjLbXmo/ZQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Language: en-US Xref: csiph.com comp.lang.java.programmer:37265 On 8/17/2017 3:04 AM, Cecil Westerhof wrote: > That is why I started with the wrapper: to make sure that a Statement > is implicit generated. > I also added a main so that I can use the classes from a script. For > example to check about 20 SQLite3 databases about being locked: > java -cp ${_classpath} nl.decebal.sql.SQLite3 --areDBsLockedShowErr ${_databases[*]} > > If I want a message about the databases that are locked. > > And: > java -cp ${_classpath} nl.decebal.sql.SQLite3 --areDBsLocked ${_databases[*]} > > If I want a message for every database. Have you consider instead of having a Java main then do the scripting in a JVM scripting language - Python (Jython), JavaScript (Nashorn or Rhino) or whatever you happen to have skills in? Arne