|
77 | 77 | that you can execute multiple times with different parameters.</p> |
78 | 78 | <p>You can't instantiate this class directly, you have to use a |
79 | 79 | <a href="Database.html">Database</a> object in order to create a statement.</p> |
80 | | -<p><strong>Warning</strong>: When you close a database (using db.close()), |
81 | | -all its statements are closed too and become unusable.</p> |
| 80 | +<p><strong>Warnings</strong></p> |
| 81 | +<ol> |
| 82 | +<li>When you close a database (using db.close()), all |
| 83 | +its statements are closed too and become unusable.</li> |
| 84 | +<li>After calling db.prepare() you must manually free the assigned memory |
| 85 | +by calling Statement.free(). Failure to do this will cause subsequent |
| 86 | +'DROP TABLE ...' statements to fail with 'Uncaught Error: database table |
| 87 | +is locked'.</li> |
| 88 | +</ol> |
82 | 89 | <p>Statements can't be created by the API user directly, only by |
83 | 90 | Database::prepare</p></div> |
84 | 91 | <hr/> |
@@ -221,7 +228,7 @@ <h4 class="name" id="Statement"> |
221 | 228 | <div class="details-item-container"> |
222 | 229 | <dt class="tag-source">Source:</dt> |
223 | 230 | <dd class="tag-source"><ul class="dummy"><li> |
224 | | - <a href="api.js.html">api.js</a>, <a href="api.js.html#line256">line 256</a> |
| 231 | + <a href="api.js.html">api.js</a>, <a href="api.js.html#line261">line 261</a> |
225 | 232 | </li></ul></dd> |
226 | 233 | </div> |
227 | 234 |
|
@@ -425,7 +432,7 @@ <h2>Value types</h2> |
425 | 432 | <div class="details-item-container"> |
426 | 433 | <dt class="tag-source">Source:</dt> |
427 | 434 | <dd class="tag-source"><ul class="dummy"><li> |
428 | | - <a href="api.js.html">api.js</a>, <a href="api.js.html#line310">line 310</a> |
| 435 | + <a href="api.js.html">api.js</a>, <a href="api.js.html#line315">line 315</a> |
429 | 436 | </li></ul></dd> |
430 | 437 | </div> |
431 | 438 |
|
@@ -595,7 +602,7 @@ <h4 class="name" id="%5B%22free%22%5D"> |
595 | 602 | <div class="details-item-container"> |
596 | 603 | <dt class="tag-source">Source:</dt> |
597 | 604 | <dd class="tag-source"><ul class="dummy"><li> |
598 | | - <a href="api.js.html">api.js</a>, <a href="api.js.html#line633">line 633</a> |
| 605 | + <a href="api.js.html">api.js</a>, <a href="api.js.html#line638">line 638</a> |
599 | 606 | </li></ul></dd> |
600 | 607 | </div> |
601 | 608 |
|
@@ -706,7 +713,7 @@ <h4 class="name" id="%5B%22freemem%22%5D"> |
706 | 713 | <div class="details-item-container"> |
707 | 714 | <dt class="tag-source">Source:</dt> |
708 | 715 | <dd class="tag-source"><ul class="dummy"><li> |
709 | | - <a href="api.js.html">api.js</a>, <a href="api.js.html#line623">line 623</a> |
| 716 | + <a href="api.js.html">api.js</a>, <a href="api.js.html#line628">line 628</a> |
710 | 717 | </li></ul></dd> |
711 | 718 | </div> |
712 | 719 |
|
@@ -858,7 +865,7 @@ <h4 class="name" id="%5B%22get%22%5D"> |
858 | 865 | <div class="details-item-container"> |
859 | 866 | <dt class="tag-source">Source:</dt> |
860 | 867 | <dd class="tag-source"><ul class="dummy"><li> |
861 | | - <a href="api.js.html">api.js</a>, <a href="api.js.html#line389">line 389</a> |
| 868 | + <a href="api.js.html">api.js</a>, <a href="api.js.html#line394">line 394</a> |
862 | 869 | </li></ul></dd> |
863 | 870 | </div> |
864 | 871 |
|
@@ -1044,7 +1051,7 @@ <h4 class="name" id="%5B%22getAsObject%22%5D"> |
1044 | 1051 | <div class="details-item-container"> |
1045 | 1052 | <dt class="tag-source">Source:</dt> |
1046 | 1053 | <dd class="tag-source"><ul class="dummy"><li> |
1047 | | - <a href="api.js.html">api.js</a>, <a href="api.js.html#line449">line 449</a> |
| 1054 | + <a href="api.js.html">api.js</a>, <a href="api.js.html#line454">line 454</a> |
1048 | 1055 | </li></ul></dd> |
1049 | 1056 | </div> |
1050 | 1057 |
|
@@ -1176,7 +1183,7 @@ <h4 class="name" id="%5B%22getColumnNames%22%5D"> |
1176 | 1183 | <div class="details-item-container"> |
1177 | 1184 | <dt class="tag-source">Source:</dt> |
1178 | 1185 | <dd class="tag-source"><ul class="dummy"><li> |
1179 | | - <a href="api.js.html">api.js</a>, <a href="api.js.html#line424">line 424</a> |
| 1186 | + <a href="api.js.html">api.js</a>, <a href="api.js.html#line429">line 429</a> |
1180 | 1187 | </li></ul></dd> |
1181 | 1188 | </div> |
1182 | 1189 |
|
@@ -1301,7 +1308,7 @@ <h4 class="name" id="%5B%22getNormalizedSQL%22%5D"> |
1301 | 1308 | <div class="details-item-container"> |
1302 | 1309 | <dt class="tag-source">Source:</dt> |
1303 | 1310 | <dd class="tag-source"><ul class="dummy"><li> |
1304 | | - <a href="api.js.html">api.js</a>, <a href="api.js.html#line479">line 479</a> |
| 1311 | + <a href="api.js.html">api.js</a>, <a href="api.js.html#line484">line 484</a> |
1305 | 1312 | </li></ul></dd> |
1306 | 1313 | </div> |
1307 | 1314 |
|
@@ -1423,7 +1430,7 @@ <h4 class="name" id="%5B%22getSQL%22%5D"> |
1423 | 1430 | <div class="details-item-container"> |
1424 | 1431 | <dt class="tag-source">Source:</dt> |
1425 | 1432 | <dd class="tag-source"><ul class="dummy"><li> |
1426 | | - <a href="api.js.html">api.js</a>, <a href="api.js.html#line463">line 463</a> |
| 1433 | + <a href="api.js.html">api.js</a>, <a href="api.js.html#line468">line 468</a> |
1427 | 1434 | </li></ul></dd> |
1428 | 1435 | </div> |
1429 | 1436 |
|
@@ -1536,7 +1543,7 @@ <h4 class="name" id="%5B%22reset%22%5D"> |
1536 | 1543 | <div class="details-item-container"> |
1537 | 1544 | <dt class="tag-source">Source:</dt> |
1538 | 1545 | <dd class="tag-source"><ul class="dummy"><li> |
1539 | | - <a href="api.js.html">api.js</a>, <a href="api.js.html#line614">line 614</a> |
| 1546 | + <a href="api.js.html">api.js</a>, <a href="api.js.html#line619">line 619</a> |
1540 | 1547 | </li></ul></dd> |
1541 | 1548 | </div> |
1542 | 1549 |
|
@@ -1688,7 +1695,7 @@ <h4 class="name" id="%5B%22run%22%5D"> |
1688 | 1695 | <div class="details-item-container"> |
1689 | 1696 | <dt class="tag-source">Source:</dt> |
1690 | 1697 | <dd class="tag-source"><ul class="dummy"><li> |
1691 | | - <a href="api.js.html">api.js</a>, <a href="api.js.html#line488">line 488</a> |
| 1698 | + <a href="api.js.html">api.js</a>, <a href="api.js.html#line493">line 493</a> |
1692 | 1699 | </li></ul></dd> |
1693 | 1700 | </div> |
1694 | 1701 |
|
@@ -1776,7 +1783,7 @@ <h4 class="name" id="%5B%22step%22%5D"> |
1776 | 1783 | <div class="details-item-container"> |
1777 | 1784 | <dt class="tag-source">Source:</dt> |
1778 | 1785 | <dd class="tag-source"><ul class="dummy"><li> |
1779 | | - <a href="api.js.html">api.js</a>, <a href="api.js.html#line328">line 328</a> |
| 1786 | + <a href="api.js.html">api.js</a>, <a href="api.js.html#line333">line 333</a> |
1780 | 1787 | </li></ul></dd> |
1781 | 1788 | </div> |
1782 | 1789 |
|
@@ -1926,7 +1933,7 @@ <h4 class="name" id=".BindParams"> |
1926 | 1933 | <div class="details-item-container"> |
1927 | 1934 | <dt class="tag-source">Source:</dt> |
1928 | 1935 | <dd class="tag-source"><ul class="dummy"><li> |
1929 | | - <a href="api.js.html">api.js</a>, <a href="api.js.html#line267">line 267</a> |
| 1936 | + <a href="api.js.html">api.js</a>, <a href="api.js.html#line272">line 272</a> |
1930 | 1937 | </li></ul></dd> |
1931 | 1938 | </div> |
1932 | 1939 |
|
|
0 commit comments