(self, conn)
return exists
Detect whether the application usage table exists.

    Args:
      conn: sqlite3.Connection object
    Returns:
      True if the table exists, False if not.
    Raises:
      sqlite3.Error: if error occurs
Detect whether the application usage table exists.
Detect whether the application usage table exists .
def _DetectApplicationUsageTable(self, conn):
    """Detect whether the application usage table exists.

    Args:
      conn: sqlite3.Connection object
    Returns:
      True if the table exists, False if not.
    Raises:
      sqlite3.Error: if error occurs
    """
    try:
      conn.execute(APPLICATION_USAGE_TABLE_DETECT)
      exists = True
    except sqlite3.OperationalError, e:
      if e.args[0].startswith('no such table'):
        exists = False
      else:
        raise
    return exists
def _DetectApplicationUsageTable ( self , conn ) : try : conn . execute ( APPLICATION_USAGE_TABLE_DETECT ) exists = True except sqlite3 . OperationalError , e : if e . args [ 0 ] . startswith ( 'no such table' ) : exists = False else : raise return exists