Skip to content

Commit 2b8c63f

Browse files
committed
CRUD architecture
1 parent 11b8eaf commit 2b8c63f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# CRUD-pygo
22
CRUD comparison between python and golang
3+
4+
CRUD stands for CREATE READ UPDATE DELETE, they are the fundamental operations performed on a database. Read more here [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete)
5+
## Architecture
6+
![alt text](crud.png "CRUD Program Architecture")

crud.png

45.6 KB
Loading

crud.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# CREATE
77
@app.route('/create', methods=['POST'])
88
def create():
9-
name = request.json['name']
9+
name = request.json['Name']
1010
conn = psycopg2.connect(database="postgres", user = "postgres", password = "password", host = "127.0.0.1", port = "5432")
1111
cur = conn.cursor()
1212
sql ="insert into data values('%s')"%name

0 commit comments

Comments
 (0)