from sqlalchemy import create_engine, MetaData, Table, Integer, String, \ Column, DateTime, ForeignKey, Numeric from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from sqlalchemy import select, update engine = create_engine('postgresql+psycopg2://postgres:postgres@postgres.vdk2ch.ru:5432/jack_bot', echo=True) Session = sessionmaker(bind=engine) session = Session() Base = declarative_base() class user(Base): __tablename__ = 'users' id = Column(Integer, primary_key=True) user_id = Column(Integer) user_fullname = Column(String) dick_size = (Column(Integer)) datetimes = (Column(DateTime)) session.close() #Base.metadata.create_all(engine) # int_table = user(user_id = 12345678, user_fullname = 'test', dick_size = 10) #импортирую юзер из sqdb # session.add(int_table) # session.commit() # select user_id, name from employees limit 10 # def adding(): # session.add() # session.commit()