0

I am a Django developer but recreantly started work with Flask. My problem is i want perform CRUD operation in flask using sqlite3. can i do this? Below i have put my ORM. how is work and how data will save into database?

from sqlobject import *

my_database_con=connectionForURI('sqlite:databasename.db')
sqlhub.processConnection = connection

class add_stock(SQLObject):
    stock_name=StringCol(length=200, default=None)
    stock_amount=DecimalCol(default="",size=4,precision=3)   
phd
  • 82,685
  • 13
  • 120
  • 165
  • SQLObject is not a flask ORM, it's quite an independent ORM. The docs are at http://sqlobject.org/ . See [the FAQ](http://sqlobject.org/FAQ.html) and [high-level examples](http://sqlobject.org/SQLObject.html#using-sqlobject-an-introduction). – phd Mar 24 '23 at 10:52

0 Answers0