новая база на алхимии
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pavel_Duron 2022-11-08 21:51:35 +10:00
parent ecbe804bf3
commit dadde986a2
2 changed files with 7 additions and 6 deletions

BIN
dick3.db

Binary file not shown.

11
sqdb.py
View File

@ -19,16 +19,17 @@ class user(Base):
id = Column(Integer, primary_key=True) id = Column(Integer, primary_key=True)
user_id = Column(Integer) user_id = Column(Integer)
user_fullname = Column(String) user_fullname = Column(String)
c2 = user(user_id = 123466, user_fullname = 'sfsfsfsfs')
class adding(Base):
async def add_user():
c2 = user(user_id = 1234, user_fullname = 'dadad') session.add()
session.add(c2)
session.commit() session.commit()
#Base.metadata.create_all(engine)