Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update ReadMe
  • Loading branch information
handuy committed Feb 6, 2019
1 parent a6cbdaf commit 976b47b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion ReadMe.md
@@ -1,5 +1,17 @@
# Tạo một sample database bằng Golang và go-pg

## Database này gồm 7 bảng

![Database design](final_db.png?raw=true "Database design")

- club: 20.000 bản ghi
- league: 1000 bản ghi
- club_league: 1.000.000 bản ghi
- nation: 247 bản ghi
- cup: 1000 bản ghi
- nation_cup: 150.000 bản ghi
- player: 1.000.000 bản ghi

### Trước tiên, dùng Docker để chạy một PostgreSQL server, expose ra cổng 5432

```bash
Expand All @@ -25,4 +37,8 @@ git clone https://github.com/handuy/sample_db.git

```go
go run *.go
```
```

### Màn hình terminal hiển thị như ảnh dưới thì là OK

![Final result](result.png?raw=true "Final result")
Binary file added final_db.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added result.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 976b47b

Please sign in to comment.