# # Database Navigator is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Database Navigator. If not, see <http://www.gnu.org/licenses/>. # from dbnav.args import parent_parser, format_group, create_parser from dbnav.args import CommaSeparatedPlainList, CommaSeparatedStringList from .writer import StatementActivityWriter parent = parent_parser() group = format_group(parent) group.add_argument( '-D', '--default', help='output format: default', dest='formatter', action='store_const', const=StatementActivityWriter) parser = create_parser( prog='dbstat', description='A database status tool', parents=[parent]) parser.add_argument(
# Database Navigator is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Database Navigator. If not, see <http://www.gnu.org/licenses/>. # from dbnav.args import parent_parser, format_group, create_parser from dbnav.args import CommaSeparatedDict from .writer import SqlInsertWriter, SqlUpdateWriter, SqlDeleteWriter from .writer import YamlWriter, FormattedWriter parent = parent_parser(daemonable=True) group = format_group( parent, SqlInsertWriter) group.add_argument( '-I', '--insert', default=True, help='output format: SQL insert statements', dest='formatter', action='store_const', const=SqlInsertWriter) group.add_argument( '-U', '--update',