Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename "open a database" algorithm to "open a database connection" #411

Merged
merged 1 commit into from
Aug 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ handler.
deletion of [=/object stores=] and [=/indexes=] in a [=/database=].

An [=/upgrade transaction=] is exclusive. The steps to [=open a
database=] ensure that only one [=/connection=] to the database is
database connection=] ensure that only one [=/connection=] to the database is
open when an [=/upgrade transaction=] is [=transaction/live=].
The {{IDBOpenDBRequest/upgradeneeded!!event}} event isn't fired, and thus the
[=/upgrade transaction=] isn't started, until all other
Expand Down Expand Up @@ -2212,7 +2212,7 @@ The <dfn method for=IDBFactory>open(|name|, |version|)</dfn> method steps are:
1. Run these steps [=in parallel=]:

1. Let |result| be the result of
[=/opening a database=], with |storageKey|,
[=/opening a database connection=], with |storageKey|,
|name|, |version| if given and undefined
otherwise, and |request|.

Expand Down Expand Up @@ -4939,12 +4939,12 @@ The <dfn attribute for=IDBTransaction>onerror</dfn> attribute is an [=/event han
<!-- ============================================================ -->

<!-- ============================================================ -->
## Opening a database ## {#opening}
## Opening a database connection ## {#opening}
<!-- ============================================================ -->

<div algorithm>

To <dfn>open a database</dfn> with |storageKey| which requested the [=/database=] to be opened, a database |name|, a database |version|, and a |request|, run these steps:
To <dfn>open a database connection</dfn> with |storageKey| which requested the [=/database=] to be opened, a database |name|, a database |version|, and a |request|, run these steps:

1. Let |queue| be the [=/connection queue=] for |storageKey| and |name|.

Expand Down Expand Up @@ -5017,7 +5017,7 @@ To <dfn>open a database</dfn> with |storageKey| which requested the [=/database=
</div>

<!-- ============================================================ -->
## Closing a database ## {#closing-connection}
## Closing a database connection ## {#closing-connection}
<!-- ============================================================ -->

<div algorithm>
Expand Down
Loading