Yes, that's what I mean.
Not all SQL queries are the same, but SELECT COUNT(1) FROM is the same ;)


On Mon, Apr 1, 2013 at 3:49 PM, nmalzieu <notifications@github.com> wrote:

> In pynagiosplugins/nagios_check_sqlite.py:
>
> > @@ -0,0 +1,37 @@
> > +# coding: utf-8
> > +import sqlite3
> > +
> > +from nagios_check import NagiosCheck
> > +
> > +
> > +class NagiosCheckSQLite(NagiosCheck):
> > +    def __init__(self, db_path=None, sqlite_select='COUNT(1)', sqlite_from=None, sqlite_where='1', sqlite_query=None, **params):
>
> what do you mean?
> Like a base class, and both SQLite and MySQL classes would inherit from it?
> Not all MySQL queries are the same as SQLite, are they?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Work4Labs/pynagiosplugins/pull/4/files#r3609646>
> .
>