Skip to content

Commit 9893fb2

Browse files
authored
Merge branch 'main' into main
2 parents cef7ec8 + c5085b6 commit 9893fb2

File tree

122 files changed

+14814
-3168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+14814
-3168
lines changed

.github/workflows/build-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
outputs:
2323
docs: ${{ steps.filter.outputs.docs }}
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v5
2626
# For pull requests it's not necessary to checkout the code but for the main branch it is
2727
- uses: dorny/paths-filter@v3
2828
id: filter
@@ -53,7 +53,7 @@ jobs:
5353
env:
5454
GITHUB_CONTEXT: ${{ toJson(github) }}
5555
run: echo "$GITHUB_CONTEXT"
56-
- uses: actions/checkout@v4
56+
- uses: actions/checkout@v5
5757
- name: Set up Python
5858
uses: actions/setup-python@v5
5959
with:

.github/workflows/deploy-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
env:
2424
GITHUB_CONTEXT: ${{ toJson(github) }}
2525
run: echo "$GITHUB_CONTEXT"
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v5
2727
- name: Set up Python
2828
uses: actions/setup-python@v5
2929
with:
@@ -49,7 +49,7 @@ jobs:
4949
run: |
5050
rm -rf ./site
5151
mkdir ./site
52-
- uses: actions/download-artifact@v4
52+
- uses: actions/download-artifact@v5
5353
with:
5454
path: ./site/
5555
pattern: docs-site

.github/workflows/latest-changes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
latest-changes:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v5
2424
with:
2525
# To allow latest-changes to commit to the main branch
2626
token: ${{ secrets.SQLMODEL_LATEST_CHANGES }}
@@ -30,7 +30,7 @@ jobs:
3030
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
3131
with:
3232
limit-access-to-actor: true
33-
- uses: tiangolo/latest-changes@0.3.2
33+
- uses: tiangolo/latest-changes@0.4.0
3434
with:
3535
token: ${{ secrets.GITHUB_TOKEN }}
3636
latest_changes_file: docs/release-notes.md

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
permissions:
2323
id-token: write
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v5
2626
- name: Set up Python
2727
uses: actions/setup-python@v5
2828
with:

.github/workflows/smokeshow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
2020
- uses: actions/setup-python@v5
2121
with:
2222
python-version: '3.9'
@@ -29,7 +29,7 @@ jobs:
2929
requirements**.txt
3030
pyproject.toml
3131
- run: uv pip install -r requirements-github-actions.txt
32-
- uses: actions/download-artifact@v4
32+
- uses: actions/download-artifact@v5
3333
with:
3434
name: coverage-html
3535
path: htmlcov

.github/workflows/test-redistribute.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
env:
2323
GITHUB_CONTEXT: ${{ toJson(github) }}
2424
run: echo "$GITHUB_CONTEXT"
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v5
2626
- name: Set up Python
2727
uses: actions/setup-python@v5
2828
with:

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
fail-fast: false
4040
runs-on: ${{ matrix.os }}
4141
steps:
42-
- uses: actions/checkout@v4
42+
- uses: actions/checkout@v5
4343
- name: Set up Python
4444
uses: actions/setup-python@v5
4545
with:
@@ -87,7 +87,7 @@ jobs:
8787
- test
8888
runs-on: ubuntu-latest
8989
steps:
90-
- uses: actions/checkout@v4
90+
- uses: actions/checkout@v5
9191
- uses: actions/setup-python@v5
9292
with:
9393
python-version: '3.13'
@@ -100,7 +100,7 @@ jobs:
100100
requirements**.txt
101101
pyproject.toml
102102
- name: Get coverage files
103-
uses: actions/download-artifact@v4
103+
uses: actions/download-artifact@v5
104104
with:
105105
pattern: coverage-*
106106
path: coverage

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ default_language_version:
44
python: python3.10
55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v5.0.0
7+
rev: v6.0.0
88
hooks:
99
- id: check-added-large-files
1010
- id: check-toml
@@ -14,7 +14,7 @@ repos:
1414
- id: end-of-file-fixer
1515
- id: trailing-whitespace
1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.11.2
17+
rev: v0.12.9
1818
hooks:
1919
- id: ruff
2020
args:

docs/databases.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ There are many databases of many types.
6868

6969
A database could be a single file called `heroes.db`, managed with code in a very efficient way. An example would be SQLite, more about that in a bit.
7070

71-
![database as a single file](img/databases/single-file.svg)
71+
![database as a single file](img/databases/single-file.drawio.svg)
7272

7373
### A server database
7474

@@ -80,11 +80,11 @@ In this case, your code would talk to this server application instead of reading
8080

8181
The database could be located in a different server/machine:
8282

83-
![database in an external server](img/databases/external-server.svg)
83+
![database in an external server](img/databases/external-server.drawio.svg)
8484

8585
Or the database could be located in the same server/machine:
8686

87-
![database in the same server](img/databases/same-server.svg)
87+
![database in the same server](img/databases/same-server.drawio.svg)
8888

8989
The most important aspect of these types of databases is that **your code doesn't read or modify** the files containing the data directly.
9090

@@ -98,7 +98,7 @@ In some cases, the database could even be a group of server applications running
9898

9999
In this case, your code would talk to one or more of these server applications running on different machines.
100100

101-
![distributed database in multiple servers](img/databases/multiple-servers.svg)
101+
![distributed database in multiple servers](img/databases/multiple-servers.drawio.svg)
102102

103103
Most of the databases that work as server applications also support multiple servers in one way or another.
104104

@@ -257,7 +257,7 @@ For example, the table for the teams has the ID `1` for the team `Preventers` an
257257

258258
As these **primary key** IDs can uniquely identify each row on the table for teams, we can now go to the table for heroes and refer to those IDs in the table for teams.
259259

260-
![table relationships](img/databases/relationships.svg)
260+
![table relationships](img/databases/relationships.drawio.svg)
261261

262262
So, in the table for heroes, we use the `team_id` column to define a relationship to the *foreign* table for teams. Each value in the `team_id` column on the table with heroes will be the same value as the `id` column of one row in the table with teams.
263263

docs/db-to-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ For example this **Relation** or table:
279279

280280
* **Mapper**: this comes from Math, when there's something that can convert from some set of things to another, that's called a "**mapping function**". That's where the **Mapper** comes from.
281281

282-
![Squares to Triangles Mapper](img/db-to-code/mapper.svg)
282+
![Squares to Triangles Mapper](img/db-to-code/mapper.drawio.svg)
283283

284284
We could also write a **mapping function** in Python that converts from the *set of lowercase letters* to the *set of uppercase letters*, like this:
285285

0 commit comments

Comments
 (0)