Compare commits
2 Commits
dadde986a2
...
b148e10393
Author | SHA1 | Date | |
---|---|---|---|
b148e10393 | |||
b3dce30491 |
11
sqdb.py
11
sqdb.py
@ -19,15 +19,14 @@ 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()
|
c2 = user(user_id = 1234, user_fullname = 'sfsfsfsfs')
|
||||||
|
|
||||||
|
session.add(c2)
|
||||||
session.commit()
|
session.commit()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#Base.metadata.create_all(engine)
|
#Base.metadata.create_all(engine)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user