Back to Browse

How to Create REST API using Flask-SQLAlchemy In Telugu - Web Development Using Flask and Python

296 views
Nov 29, 2023
19:14

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.

How to Create REST API using Flask-SQLAlchemy In Telugu - Web Development Using Flask and Python | NatokHD