Skip to content

Commit

Permalink
Rename "open a database" algorithm to "open a database connection"
Browse files Browse the repository at this point in the history
It's more correct, and symmetric with "close a database connection".

Resolves #410.
  • Loading branch information
inexorabletash committed Aug 2, 2023
1 parent ca827c1 commit 05332f6
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 05332f6

Please sign in to comment.