예제 #1
0
파일: dbwatch.py 프로젝트: apardo/dbwatch
def extract_data(inputdirs):
  "Lay out the filesystem structure on the dirs and dump database data there."  
  for inputdir in inputdirs:
    mapping = DBMap(inputdir)
    mapping.extract_records()
예제 #2
0
파일: dbwatch.py 프로젝트: apardo/dbwatch
def check_db(inputdirs):
  """Test whether the filesystem and the database have the same information."""
  for inputdir in inputdirs:
    mapping = DBMap(inputdir)
    mapping.test()