<s> import sqlite3 <EOL> from settings import * <EOL> def isSchemaThere ( conn ) : <EOL> cur = conn . cursor ( ) <EOL> cur . execute ( "<STR_LIT>" ) <EOL> if len ( cur . fetchall ( ) ) > <NUM_LIT:0> : <EOL> return True <EOL> return False <EOL> conn = sqlite3 . connect ( LOCAL_LINK_DB ) <EOL> if isSchemaThere ( conn ) == True : <EOL> cur = conn . cursor ( ) <EOL> cur . execute ( "<STR_LIT>" ) <EOL> cur . execute ( "<STR_LIT>" ) <EOL> conn . commit ( ) <EOL> conn . close ( ) </s>
