Posts

Showing posts from December, 2021

Concept of localhost

  In computer networking, “localhost” refers to the computer that a particular program is running on. For example, if you’re running a program on your own computer (like a web browser or local web development environment), then your computer is the “localhost.” On the other hand, if you’re talking about a   MySQL database   that sits on your host’s web server, then your host’s web server is the “localhost” in that scenario. In the most simple terms, you can essentially think of localhost as meaning “this computer.”  Just remember that “this computer” applies to the  program,  not necessarily to the computer that you’re physically using. The concept of hosting is very simply that you’re using someone else’s hardware to run your instance of SQL Server. SQL Server Instance is the actual service process you make connection with. Typical SQL Server installation consists of multiple named instances (test and production environment). SQL Server database is the act...

SQL ALchemy

SQL Alchemy What is ORM What is Python DBAPI  Full Desc. SQLAlchemy is a ORM, psycopg2 is a database driver. These are completely different things: SQLAlchemy  generates  SQL statements and psycopg2 sends SQL statements to the database. SQLAlchemy depends on psycopg2 or other database drivers to communicate with the database! As a rather complex software layer SQLAlchemy does add some overhead but it also is a huge boost to development speed, at least once you learned the library. SQLAlchemy is a excellent library and will teach you the whole ORM concept, but if you don't want to generate SQL statements to begin with then you don't want SQLAlchemy. To talk with database any one need driver for that. If you are using client like SQL Plus for oracle, MysqlCLI for Mysql then it will direct run the query and that client come with DBServer pack. To communicate from outside with any language like java, c, python, C#... We need driver to for that database. psycopg2 is driver to ...