title: how to access and use sqlalchemy methods inside flask sqlalchemy properly
body: <p>Guys how to use sqlalchemy along with flask sqlalchemy since both of them are little different e.g</p>
  
  <p>sqlalchemy example</p>
  
  <pre class="lang-css prettyprint-override"><code>from sqlalchemy.orm import sessionmaker
  
  Session = sessionmaker(bind=engine)
  session = Session()
  ed_user = User(name='ed', fullname='Ed Jones', nickname='edsnickname')
  session.add(ed_user)
  </code></pre>
  
  <p>sqlalchemy example</p>
  
  <pre class="lang-css prettyprint-override"><code>from flask import Flask
  from flask_sqlalchemy import SQLAlchemy
  
  app = Flask(__name__)
  db = SQLAlchemy(app)
  ed_user = User(name='ed', fullname='Ed Jones', nickname='edsnickname')
  db.session.add(ed_user)
  </code></pre>
  
  <p>the question is that how would we bring the methods from "sqlalchemy" and use it alongside in Flask without creating separating them both and making both of them to work together?
  Better question would be how to use sqlalchemy inside flask and use all of its methods inside it?</p>