#NEWLINE# def verifyTables( self ) : #NEWLINE# #INDENT# missingTables = ( XBRLDBTABLES - self . tablesInDB ( ) ) #NEWLINE# if ( missingTables == XBRLDBTABLES ) : #NEWLINE# #INDENT# self . create ( { #NEWLINE# #INDENT# 'mssql' : 'xbrlSemanticMSSqlDB.sql' , #NEWLINE# 'mysql' : 'xbrlSemanticMySqlDB.ddl' , #NEWLINE# 'sqlite' : 'xbrlSemanticSQLiteDB.ddl' , #NEWLINE# 'orcl' : 'xbrlSemanticOracleDB.sql' , #NEWLINE# 'postgres' : 'xbrlSemanticPostgresDB.ddl' , #NEWLINE# #UNINDENT# } [ self . product ] ) #NEWLINE# missingTables = ( XBRLDBTABLES - self . tablesInDB ( ) ) #NEWLINE# #UNINDENT# if ( missingTables and ( missingTables != { 'sequences' } ) ) : #NEWLINE# #INDENT# raise XPDBException ( 'sqlDB:MissingTables' , _ ( 'The following tables are missing: %(missingTableNames)s' ) , missingTableNames = ', ' . join ( ( t for t in sorted ( missingTables ) ) ) )