database - SQLAlchemy、PostgreSQL 和 SQLite 之间有什么区别?

标签 database heroku web

<分区>

我不太明白这三者之间的区别,我在 SQLAlchemy 中看到了 SQLite 和 PostgreSQL - 所以它们是 SQLAlchemy 的一部分。请阐明这些数据库系统可能共享或不共享的区别和关系。

此外,我正在 Heroku 上构建我的应用程序 - Heroku 是否支持所有这三种应用程序?

最佳答案

PostgreSQL 和 SQLite 是两个关系数据库,SQLAlchemy 是一个 ORM它为您提供了一组用于访问数据库中数据的工具。

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.

基本上,SQLAlchemy 为您提供了访问 SQL 数据库(例如 PostgreSQL 和 SQLite Mysql 等)并以 Python 方式查询它们的工具。

网上有这个链接很好找the difference between PostgreSQL and SQLite .

先安装PostgreSQL;然后开始我会看看 tutorials在 SQLAlchemy 网站上,它解释了您入门所需的所有术语。 SQLAlchemy tutorials

这些简单地解释了如何连接到数据库、设置 SQLAlchemy 以及如何将所有内容组合在一起。

它还会教您如何创建表、使用炼金术代码以及如何查询数据集。

关于database - SQLAlchemy、PostgreSQL 和 SQLite 之间有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13748111/

相关文章:

javascript - 从网络浏览器启动本地可执行文件

mysql - 如何从联合表中选择不相等的列

java - 带有 Spring Security 和自定义数据库的 Spring Boot

spring - 在 Jhipster 中设置 bonsai-elasticsearch - Heroku

mysql - 为什么我的 React 应用程序(具有 Node 和 mysql 后端)可以在本地运行,但不能在 Heroku 上运行?

java - Java 中是否有 Django 调试页面或 DjDT 之类的东西?

javascript - foreach 循环中的异步

database - Flutter Firebase数据库 “The method ' forEach'被调用为null。”

c# - Entity Framework 灵活缓存

heroku - 减少 Heroku 上的 Clojure 启动时间(错误 R10)