Answers for "declarative base sqlalchemy"

SQL
0

declarative base sqlalchemy

from sqlalchemy import Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()

class SomeClass(Base):
    __tablename__ = 'some_table'
    id = Column(Integer, primary_key=True)
    name =  Column(String(50))
Posted by: Guest on August-08-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language