Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions content/gerenciando-banco-dados-sqlite3-python-parte2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ Gerenciando banco de dados SQLite3 com Python - Parte 2

Esta é a continuação do artigo `Gerenciando banco de dados SQLite3 com Python - Parte 1 <http://pythonclub.com.br/gerenciando-banco-dados-sqlite3-python-parte1.html>`_. Na 1ª parte nós vimos como realizar o CRUD num banco de dados SQLite3 usando o Python, mas cada tarefa foi feita num arquivo ``.py`` separado. A intenção agora é utilizar um **único arquivo** e, usando classes e métodos realizar as mesmas tarefas, só que de uma forma mais sofisticada.

PS: *Considere a sintaxe para Python 3*. Mas o programa roda em python2 também.

Tem video no YouTube.
Também fiz uma série de videos, assista a primeira aula abaixo ou acesse todas as aulas no `YouTube <https://www.youtube.com/watch?v=Qe3N7jiGZAc&list=PLsGCdfxkV9upVUtH0zsJ2f4WhQvJrZsVb>`_.

.. image:: images/regisdasilva/youtube_logo.png
:alt: youtube_logo.png
:target: https://www.youtube.com/watch?v=Qe3N7jiGZAc&list=PLsGCdfxkV9upVUtH0zsJ2f4WhQvJrZsVb


.. youtube:: Qe3N7jiGZAc

Vou repetir a tabela ``clientes`` apenas por comodidade:

+-----------+-----------------+-----------+
Expand Down Expand Up @@ -48,7 +49,7 @@ Vou repetir a tabela ``clientes`` apenas por comodidade:

Obs: O campo ``bloqueado`` nós vamos inserir depois com o comando ``ALTER TABLE``.

.. Assista os videos no `youtube <http://>`_ .
PS: *Considere a sintaxe para Python 3*. Mas o programa roda em python2 também.

Veja os exemplos em `github <https://github.com/rg3915/python-sqlite>`_.

Expand Down Expand Up @@ -1080,8 +1081,8 @@ Agora, no mesmo arquivo `manager_db.py <https://github.com/rg3915/python-sqlite/

Veja na figura a seguir como as tabelas se relacionam.

.. image:: images/regisdasilva/tabelas.jpg
:alt: tabelas.jpg
.. image:: images/regisdasilva/tabelas.png
:alt: tabelas.png

Agora os códigos:

Expand Down Expand Up @@ -1220,7 +1221,7 @@ Chamando tudo no **modo interativo**
Exemplos
--------

.. Assista os videos no `youtube <http://>`_ .
Assista os videos no `youtube <https://www.youtube.com/watch?v=Qe3N7jiGZAc&list=PLsGCdfxkV9upVUtH0zsJ2f4WhQvJrZsVb>`_.

Veja os exemplos no `github <https://github.com/rg3915/python-sqlite>`_.

Expand Down
Binary file modified content/images/regisdasilva/youtube_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.