from create_db import Student
from sqlmodel import Session, create_engine

student_1 = Student(id=1, first_name="Misal", last_name="Gupta", email="<EMAIL>")
student_2 = Student(id=2, first_name="Vivek", last_name="Kumar", email="<EMAIL>")
student_3 = Student(id=3, first_name="Himesh", last_name="Mahto", email="<EMAIL>")

sqlite_url = "sqlite:///school.db"
engine = create_engine(sqlite_url, echo=True)
session = Session(engine)

session.add(student_1)
session.add(student_2)
session.add(student_3)

session.commit()
session.close()

sqlmodel.Session sqlmodel.create_engine create_db.Student
[((87, 156), 'create_db.Student', 'Student', ([], {'id': '(1)', 'first_name': '"""Misal"""', 'last_name': '"""Gupta"""', 'email': '"""<EMAIL>"""'}), "(id=1, first_name='Misal', last_name='Gupta', email='<EMAIL>')\n", (94, 156), False, 'from create_db import Student\n'), ((169, 238), 'create_db.Student', 'Student', ([], {'id': '(2)', 'first_name': '"""Vivek"""', 'last_name': '"""Kumar"""', 'email': '"""<EMAIL>"""'}), "(id=2, first_name='Vivek', last_name='Kumar', email='<EMAIL>')\n", (176, 238), False, 'from create_db import Student\n'), ((251, 321), 'create_db.Student', 'Student', ([], {'id': '(3)', 'first_name': '"""Himesh"""', 'last_name': '"""Mahto"""', 'email': '"""<EMAIL>"""'}), "(id=3, first_name='Himesh', last_name='Mahto', email='<EMAIL>')\n", (258, 321), False, 'from create_db import Student\n'), ((367, 403), 'sqlmodel.create_engine', 'create_engine', (['sqlite_url'], {'echo': '(True)'}), '(sqlite_url, echo=True)\n', (380, 403), False, 'from sqlmodel import Session, create_engine\n'), ((414, 429), 'sqlmodel.Session', 'Session', (['engine'], {}), '(engine)\n', (421, 429), False, 'from sqlmodel import Session, create_engine\n')]