Skip to content

Instantly share code, notes, and snippets.

@dineshkumarkb
Created September 20, 2022 14:46
Show Gist options
  • Select an option

  • Save dineshkumarkb/aad90c4fdf12bd0cc82a82b01d1340c2 to your computer and use it in GitHub Desktop.

Select an option

Save dineshkumarkb/aad90c4fdf12bd0cc82a82b01d1340c2 to your computer and use it in GitHub Desktop.
from sqlalchemy.orm import sessionmaker, declarative_base
Base = declarative_base()
app = FastAPI(title=" A simple pagination learning exercise",
debug=True)
class Employee(Base):
__tablename__ = "employee"
empid = Column(Integer, primary_key=True)
empname = Column(String)
dept = Column(Integer)
location = Column(String)
dob = Column(Date)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment