Skip to content

Commit

Permalink
Update content
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaprasadreddy committed Dec 5, 2023
1 parent 09b033e commit 3a05967
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,18 @@ This will help us to run the application in different environments without chang

== Implement business logic

Let's create *customers/customer.py* file and create *Customer* class as follows:
Let's create *customers/customers.py* file and create *Customer* class as follows:

[source,python]
----
include::{codebase}/customers/customer.py[lines="4..12"]
include::{codebase}/customers/customers.py[lines="4..12"]
----

Now, let's implement *create_table()* function to create *customers* table as follows:

[source,python]
----
include::{codebase}/customers/customer.py[lines="1..3,4..24"]
include::{codebase}/customers/customers.py[lines="1..3,4..24"]
----

We have obtained a new database connection using *get_connection()* function and created a *customers* table.
Expand All @@ -92,7 +92,7 @@ and *delete_all_customers()* functions as follows:

[source,python]
----
include::{codebase}/customers/customer.py[lines="26..54"]
include::{codebase}/customers/customers.py[lines="26..54"]
----

We have implemented various functions to insert, fetch, and delete customer records from the database
Expand Down

0 comments on commit 3a05967

Please sign in to comment.