parameters: (db_session, filename)
return_statement: return file_id
docstring: 通过文件名查找文件id
docstring_summary: 通过文件名查找文件id
docstring_tokens: 通过文件名查找文件id
function: def query_file_id(db_session, filename):
      ''' 通过文件名查找文件id '''
      file_id = db_session.select(
          mysql_config.TABLE_NEWS_FILE,
          "file_name=\"%s\"" % filename,
          False,
          "news_file_id")
      return file_id
      pass
function_tokens: def query_file_id ( db_session , filename ) : file_id = db_session . select ( mysql_config . TABLE_NEWS_FILE , "file_name=\"%s\"" % filename , False , "news_file_id" ) return file_id pass