@@ -193,20 +193,32 @@ msgid ""
193
193
"execute>`, assign the result to ``res``, and call :meth:`res.fetchone() "
194
194
"<Cursor.fetchone>` to fetch the resulting row:"
195
195
msgstr ""
196
+ "Podemos verificar se a nova tabela foi criada consultando a tabela embutida "
197
+ "``sqlite_master`` no SQLite, que agora deve conter uma entrada para a "
198
+ "definição da tabela ``movie`` (veja `The Schema Table`_ para detalhes ). "
199
+ "Execute essa consulta chamando :meth:`cur.execute(...) <Cursor.execute>`, "
200
+ "atribua o resultado a ``res`` e chame :meth:`res.fetchone() <Cursor."
201
+ "fetchone> ` para buscar a linha resultante:"
196
202
197
203
#: ../../library/sqlite3.rst:125
198
204
msgid ""
199
205
"We can see that the table has been created, as the query returns a :class:"
200
206
"`tuple` containing the table's name. If we query ``sqlite_master`` for a non-"
201
207
"existent table ``spam``, :meth:`!res.fetchone()` will return ``None``:"
202
208
msgstr ""
209
+ "Podemos ver que a tabela foi criada, pois a consulta retorna uma :class:"
210
+ "`tuple` contendo o nome da tabela. Se consultarmos ``sqlite_master`` por uma "
211
+ "tabela inexistente ``spam``, :meth:`!res.fetchone()` retornará ``None``:"
203
212
204
213
#: ../../library/sqlite3.rst:136
205
214
msgid ""
206
215
"Now, add two rows of data supplied as SQL literals by executing an "
207
216
"``INSERT`` statement, once again by calling :meth:`cur.execute(...) <Cursor."
208
217
"execute>`:"
209
218
msgstr ""
219
+ "Agora, adicione duas linhas de dados fornecidos como literais SQL executando "
220
+ "uma instrução ``INSERT``, mais uma vez chamando :meth:`cur.execute(...) "
221
+ "<Cursor.execute>`:"
210
222
211
223
#: ../../library/sqlite3.rst:148
212
224
msgid ""
@@ -215,6 +227,10 @@ msgid ""
215
227
"controlling-transactions` for details). Call :meth:`con.commit() <Connection."
216
228
"commit>` on the connection object to commit the transaction:"
217
229
msgstr ""
230
+ "A instrução ``INSERT`` abre implicitamente uma transação, que precisa ser "
231
+ "confirmada antes que as alterações sejam salvas no banco de dados (veja :ref:"
232
+ "`sqlite3-controlling-transactions` para detalhes). Chame :meth:`con.commit() "
233
+ "<Connection.commit>` no objeto de conexão para confirmar a transação:"
218
234
219
235
#: ../../library/sqlite3.rst:158
220
236
msgid ""
0 commit comments