original_docstring:  Get documentation object for an SqlAlchemy model
  
      :param model: Model
      :type model: sqlalchemy.ext.declarative.DeclarativeBase
      :rtype: SaModelDoc
      
docstring: Get documentation object for an SqlAlchemy model
docstring_tokens: Get documentation object for an SqlAlchemy model
code: def doc(model):
      """ Get documentation object for an SqlAlchemy model
  
      :param model: Model
      :type model: sqlalchemy.ext.declarative.DeclarativeBase
      :rtype: SaModelDoc
      """
      ins = inspect(model)
  
      return SaModelDoc(
          name=model.__name__,
          table=[t.name for t in ins.tables],
          doc=getdoc(ins.class_),
          columns=_model_columns(ins),
          primary=_model_primary(ins),
          foreign=_model_foreign(ins),
          unique=_model_unique(ins),
          relations=_model_relations(ins)
      )
code_tokens: def doc ( model ) : ins = inspect ( model ) return SaModelDoc ( name = model . __name__ , table = [ t . name for t in ins . tables ] , doc = getdoc ( ins . class_ ) , columns = _model_columns ( ins ) , primary = _model_primary ( ins ) , foreign = _model_foreign ( ins ) , unique = _model_unique ( ins ) , relations = _model_relations ( ins ) )
short_docstring: Get documentation object for an SqlAlchemy model
short_docstring_tokens: Get documentation object for an SqlAlchemy model
comment: """ Get documentation object for an SqlAlchemy model
  
      :param model: Model
      :type model: sqlalchemy.ext.declarative.DeclarativeBase
      :rtype: SaModelDoc
      """