Skip to content

Commit

Permalink
chg:usr:Move explorer and metadata to db package
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajat Venkatesh authored and vrajat committed Mar 29, 2019
1 parent 6eb85ea commit b3aee1c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion piicatcher/command_line.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import argparse
import tableprint

from piicatcher.dbexplorer import SqliteExplorer, MySQLExplorer, PostgreSQLExplorer
from piicatcher.db.explorer import SqliteExplorer, MySQLExplorer, PostgreSQLExplorer


def get_parser(parser_cls=argparse.ArgumentParser):
Expand Down
Empty file added piicatcher/db/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion piicatcher/dbexplorer.py → piicatcher/db/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import psycopg2
import logging

from piicatcher.dbmetadata import Schema, Table, Column
from piicatcher.db.metadata import Schema, Table, Column


class Explorer(ABC):
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/test_dbexplorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import logging
import pytest

from piicatcher.dbexplorer import SqliteExplorer, MySQLExplorer, PostgreSQLExplorer
from piicatcher.dbmetadata import Schema, Table, Column
from piicatcher.db.explorer import SqliteExplorer, MySQLExplorer, PostgreSQLExplorer
from piicatcher.db.metadata import Schema, Table, Column
from piicatcher.piitypes import PiiTypes

logging.basicConfig(level=logging.DEBUG)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dbmetadata.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from unittest import TestCase
from piicatcher.dbmetadata import Column, Table, Schema
from piicatcher.db.metadata import Column, Table, Schema


class DbMetadataTests(TestCase):
Expand Down

0 comments on commit b3aee1c

Please sign in to comment.