def close(self):
		'''关闭与数据库的连接'''
		if VERBOSE:
			print 'Database connection CLOSE.'
		self.conn.close()
def parse_record(self, metadata, line):
        factors = line.split('|')
        if len(factors) < 7:
            return

        registry, cc, type_, start, value, dete, status = factors[:7]
        if type_ not in ('ipv4', 'ipv6'):
            return

        return Record(metadata, start, type_, value, cc)