forked from Pavel_Durov/python_bot
новая база на алхимии
This commit is contained in:
parent
ecbe804bf3
commit
dadde986a2
13
sqdb.py
13
sqdb.py
@ -19,15 +19,16 @@ 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():
|
||||||
|
session.add()
|
||||||
|
session.commit()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
c2 = user(user_id = 1234, user_fullname = 'dadad')
|
#Base.metadata.create_all(engine)
|
||||||
|
|
||||||
session.add(c2)
|
|
||||||
session.commit()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user