Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between SQLAlchemy, PostgreSQL, and SQLite? [closed]

I don't quite understand the difference between these three and I see SQLite and PostgreSQL within the SQLAlchemy - so are they a part of SQLAlchemy. Please clarify the differences and the relationships that these database systems may or may not share.

Also, I'm building my app on Heroku - does Heroku support all three of them?

like image 259
Rohit Rayudu Avatar asked Dec 06 '12 16:12

Rohit Rayudu


People also ask

What is difference between SQLAlchemy and SQLite?

Sqlite is a database storage engine, which can be better compared with things such as MySQL, PostgreSQL, Oracle, MSSQL, etc. It is used to store and retrieve structured data from files. SQLAlchemy is a Python library that provides an object relational mapper (ORM).

What is the difference between PostgreSQL and SQLite?

SQLite is a simple DBMS, hence, it comes with basic features that are suitable to users of all types. On the other hand, PostgreSQL is a complex DBMS that comes with a wide variety of features. Hence, users can achieve a lot with PostgreSQL than with SQLite.

Does SQLAlchemy work with SQLite?

The great thing about SQLAlchemy is that it supports all popular database systems, including SQLite3, MySQL, PostgreSQL, Oracle, Microsoft SQL Server, etc.

Can I use SQLAlchemy with Postgres?

PostgreSQL supports sequences, and SQLAlchemy uses these as the default means of creating new primary key values for integer-based primary key columns.


1 Answers

PostgreSQL and SQLite are two relation databases, SQLAlchemy is an ORM which gives you a set of tools for accessing the data in the database.

SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.

It provides a full suite of well known enterprise-level persistence patterns, designed for efficient and high-performing database access, adapted into a simple and Pythonic domain language.

So basically SQLAlchemy gives you the tools to access SQL databases such as PostgreSQL and SQLite Mysql etc, and query them in a pythonic way.

There is this good link on the internet to find out the difference between PostgreSQL and SQLite.

Install PostgreSQL first; then to get started i would look at the tutorials on the SQLAlchemy website, which explains all the terminology you will need to get started. SQLAlchemy tutorials

These explain simply how to connect to a database, setup SQLAlchemy and how everything pieces together.

It also teaches you how to create tables, using the alchemy code, and how to query datasets.

like image 70
Matt Seymour Avatar answered Oct 01 '22 22:10

Matt Seymour