示例#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()