Back to Browse

14. Flask SQLAlchemy Crud OperationsTutorial In Telugu - Web Development Using Flask and Python

464 views
Oct 28, 2023
20:01

SQLAlchemy is a powerful Object Relational Mapper (ORM) library for Python that streamlines the interaction between Python code and relational databases. It provides an efficient and flexible way to query and manipulate data while abstracting the underlying database system. ORM is a programming technique that maps database tables to Python classes and table records to class instances. This allows developers to work with database records using familiar object-oriented concepts, making the interaction with databases more intuitive and efficient. Sqlite3 database connection: app.config['SQLALCHEMY_DATABASE_URI']='sqlite:///db.sqlite3' Postgresql database connection: app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://myuser:mypassword@localhost/mydatabase' mysql database connection: app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+mysqlconnector://myuser:mypassword@localhost/mydatabase' Sqlserver or mssql database connection: app.config['SQLALCHEMY_DATABASE_URI'] = 'mssql+pyodbc://myuser:mypassword@localhost/mydatabase?driver=ODBC+Driver+17+for+SQL+Server'

Download

0 formats

No download links available.

14. Flask SQLAlchemy Crud OperationsTutorial In Telugu - Web Development Using Flask and Python | NatokHD