class_docstr: Access the history database without adding to it.
  
  This is intended for use by standalone history tools. IPython shells use
  HistoryManager, below, which is a subclass of this.
class_docstr_tok: ["Access","the","history","database","without","adding","to","it",".","This","is","intended","for","use","by","standalone","history","tools",".","IPython","shells","use","HistoryManager",",","below",",","which","is","a","subclass","of","this","."]
docstr: Get the last session ID currently in the database.
  
  Within IPython, this should be the same as the value stored in
  :attr:`HistoryManager.session_number`.
docstr_tok: ["Get","the","last","session","ID","currently","in","the","database",".","Within","IPython",",","this","should","be","the","same","as","the","value","stored","in",":","attr",":","`","HistoryManager.session_number","`","."]
code: def get_last_session_id(self):
      """Get the last session ID currently in the database.
  
      Within IPython, this should be the same as the value stored in
      :attr:`HistoryManager.session_number`.
      """
      for record in self.get_tail(n=1, include_latest=True):
          return record[0]
  
imports: import atexit
  import datetime
  from pathlib import Path
  import re
  import sqlite3
  import threading
  from traitlets.config.configurable import LoggingConfigurable
  from decorator import decorator
  from IPython.utils.decorators import undoc
  from IPython.paths import locate_profile
  from traitlets import Any, Bool, Dict, Instance, Integer, List, Unicode, Union, TraitError, default, observe
label_desc: Use image node_id 9 for calling the HistoryAccessor obj's underlying member method code with example usage: obj.get_last_session_id() and returns: record