You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sqlite-cloud/quick-start-sqlalchemy-orm.mdx
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,12 @@ status: publish
6
6
slug: quick-start-sqlalchemy-orm
7
7
---
8
8
9
-
In this quickstart, we will show you how to get started with SQLite Cloud by building a FastAPI backend that connects to and reads from a SQLite Cloud database using SQLAlchemy.
9
+
In this Quick Start, we will show you how to get started with SQLite Cloud by building a FastAPI backend that connects to and reads from a SQLite Cloud database using SQLAlchemy.
10
+
11
+
NOTE that FastAPI framework:
12
+
- does NOT require you to use a relational database or any database at all.
13
+
- CAN work with any ORM library (including SQLAlchemy) or database (including SQLite, which comes pre-installed in Python and is a database supported by SQLAlchemy).
14
+
- code is MINIMAL in the example below. Most of the code is standard SQLAlchemy and framework-agnostic.
10
15
11
16
---
12
17
@@ -21,8 +26,8 @@ In this quickstart, we will show you how to get started with SQLite Cloud by bui
21
26
mkdir sqlalchemy-quickstart
22
27
cd sqlalchemy-quickstart
23
28
24
-
# open the project in VSCode
25
-
#code .
29
+
# open the project in VSCode / another editor
30
+
code .
26
31
27
32
python3 -m venv .venv
28
33
. .venv/bin/activate
@@ -155,7 +160,8 @@ AttributeError: module 'sqlitecloud.dbapi2' has no attribute 'sqlite_version_inf
155
160
156
161
7. **References**
157
162
158
-
- If you're new to FastAPI and/or want to learn more about how to work with ORMs in FastAPI, we referenced FastAPI's [introductory example](https://fastapi.tiangolo.com/#example) and [SQL Databases tutorial](https://fastapi.tiangolo.com/tutorial/sql-databases/) extensively when writing this Quickstart.
159
-
- If you're new to SQLAlchemy, refer to [their latest docs](https://docs.sqlalchemy.org/en/20/).
0 commit comments