def _get_recids_invenio2(from_date):
from invenio.legacy.dbquery import run_sql<EOL>return (id[<NUM_LIT:0>] for id in run_sql(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>',<EOL>(from_date, ), run_on_slave=True))<EOL>
Get BibDocs for Invenio 2.