Skip to content

Commit a37a568

Browse files
committed
Update notebooks
1 parent bfb63cf commit a37a568

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

chapters/01/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
</div>
6363
<div class="inner_cell">
6464
<div class="text_cell_render border-box-sizing rendered_html">
65-
<h1 id="Create-A-Database">Create A Database<a class="anchor-link" href="#Create-A-Database">&#182;</a></h1><p>For this tutorial, we'll use the <a href="http://www.sqlalchemy.org/">sqlalchemy</a> Python library to communicate with a database.</p>
65+
<h1 id="Create-A-Database">Create A Database<a class="anchor-link" href="#Create-A-Database">&#182;</a></h1><p>For this tutorial, we'll use the <a href="http://www.sqlalchemy.org/">SQLAlchemy</a> Python library to communicate with a database.</p>
6666
<p>Let's import it:</p>
6767

6868
</div>
@@ -85,10 +85,10 @@ <h1 id="Create-A-Database">Create A Database<a class="anchor-link" href="#Create
8585
</div>
8686
<div class="inner_cell">
8787
<div class="text_cell_render border-box-sizing rendered_html">
88-
<p>Sqlalchemy uses an "engine" object to interact with a database.</p>
88+
<p>SQLAlchemy uses an "engine" object to interact with a database.</p>
8989
<p>To create an engine, we first need to choose a Database Management System (DBMS). We'll use <a href="https://sqlite.org/index.html">SQLite</a> as our DBMS.</p>
90-
<p>Next, we have to define a connection URL. The URL tells sqlalchemy which DBMS we have chosen and how to connect to our database.</p>
91-
<p>SQLite uses a single file for each database and the structure of the URL we need for sqlalchemy is:</p>
90+
<p>Next, we have to define a connection URL. The URL tells SQLAlchemy which DBMS we have chosen and how to connect to our database.</p>
91+
<p>SQLite uses a single file for each database and the structure of the URL we need for SQLAlchemy is:</p>
9292

9393
<pre><code>sqlite:///&lt;path to the database file&gt;</code></pre>
9494
<p>Our example database will contain data about High Altitude Balloon flights. Let's name our database file <code>flight.db</code> and create an engine object for it:</p>
@@ -114,7 +114,7 @@ <h1 id="Create-A-Database">Create A Database<a class="anchor-link" href="#Create
114114
<div class="inner_cell">
115115
<div class="text_cell_render border-box-sizing rendered_html">
116116
<p>We can now connect to our database using the <code>connect()</code> method of our engine.</p>
117-
<p>Sqlalchemy will look for the file we specified in our URL and establish a connection to our database. If the file doesn't exist, sqlalchemy will create and then make the connection.</p>
117+
<p>SQLAlchemy will look for the file we specified in our URL and establish a connection to our database. If the file doesn't exist, sqlalchemy will create and then make the connection.</p>
118118

119119
</div>
120120
</div>

chapters/03/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ <h1 id="Add-Some-Data">Add Some Data<a class="anchor-link" href="#Add-Some-Data"
247247
</div>
248248
<div class="inner_cell">
249249
<div class="text_cell_render border-box-sizing rendered_html">
250-
<p>We see that sqlalchemy raises an IntegrityError and the insert fails as expected.</p>
250+
<p>We see that SQLAlchemy raises an IntegrityError and the insert fails as expected.</p>
251251

252252
</div>
253253
</div>

chapters/05/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ <h1 id="Change-The-Data">Change The Data<a class="anchor-link" href="#Change-The
348348
</div>
349349
<div class="inner_cell">
350350
<div class="text_cell_render border-box-sizing rendered_html">
351-
<p>Once again, sqlalchemy raises an IntegrityError, our update fails and the check constraint has stopped us creating invalid records.</p>
351+
<p>Once again, SQLAlchemy raises an IntegrityError, our update fails and the check constraint has stopped us creating invalid records.</p>
352352

353353
</div>
354354
</div>

chapters/08/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ <h1 id="Link-Tables-Together">Link Tables Together<a class="anchor-link" href="#
327327
</div>
328328
<div class="inner_cell">
329329
<div class="text_cell_render border-box-sizing rendered_html">
330-
<p>Sqlalchemy raises an Integrity error because we tried to create readings for flight 'hab1' but no such record exists in our 'flights' table.</p>
330+
<p>SQLAlchemy raises an Integrity error because we tried to create readings for flight 'hab1' but no such record exists in our 'flights' table.</p>
331331
<p>Let's put that right and try again. We'll create a record for the 'hab' flight but leave it with default values for latitude and longitude:</p>
332332

333333
</div>

0 commit comments

Comments
 (0)