From 05332f6ffdc5ec726a904168dd87f9d130680ad7 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Wed, 2 Aug 2023 15:11:54 -0700 Subject: [PATCH] Rename "open a database" algorithm to "open a database connection" It's more correct, and symmetric with "close a database connection". Resolves #410. --- index.bs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.bs b/index.bs index 6a11a0b..18cf98a 100644 --- a/index.bs +++ b/index.bs @@ -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 @@ -2212,7 +2212,7 @@ The open(|name|, |version|) 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|. @@ -4939,12 +4939,12 @@ The onerror attribute is an [=/event han -## Opening a database ## {#opening} +## Opening a database connection ## {#opening}
-To open a database with |storageKey| which requested the [=/database=] to be opened, a database |name|, a database |version|, and a |request|, run these steps: +To open a database connection 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|. @@ -5017,7 +5017,7 @@ To open a database with |storageKey| which requested the [=/database=
-## Closing a database ## {#closing-connection} +## Closing a database connection ## {#closing-connection}