Giter Site home page Giter Site logo

summer23's Introduction

Summer23

PostgreSQL

PostgreSQL
├── PostgreSQL_Python.ipynb
├── PostgreSQL_Python_Advanced.ipynb
└── peewee_module.py
  • PostgreSQL_Python.ipynb final run time: 14/08/2022 14:53(GMT)
    • Link Postgres database to python
    • Use python to do database CRUD (create, read, update, delete)
    • Join query, Group By, Order By, Aggregate Functions
    • Views
  • PostgreSQL_Python_Advanced.ipynb final run time: 20/08/2022 12:51(GMT)
    • WITH clause, CTE (common table expression)
    • Recursion clause
    • Case clause
    • Tree
      • parent_id column vs. ltree module
    • Link PostgreSQL with python ORM and Pandas.
      • Peewee: warp sql statement with class, more secure and so on
      • SQLAlchemy: same as Peewee
      • Pandas: useful when need data visualization
  • peewee_module.py : auto generated file by Peewee -> Working with existing databases block in PostgreSQL_Python_Advanced.ipynb.

fastapi-postgresql

fastapi-postgresql
├── readme.md
├── sqlalchemy_app
│	├── __init__.py
│	├── crud.py
│	├── database.py
│	├── main.py
│	├── models.py
│	├── schemas.py
│	└── TestPlan.md
├── peewee_app
│	├── __init__.py
│	├── crud.py
│	├── database.py
│	├── main.py
│	├── models.py
│	├── schemas.py
└──	└── TestPlan.md

sqlalchemy_app

  • crud.py: All CRUD functions and make main file more readable.
  • database.py: Establish a SQLAlchemy db connection by configure.
  • main.py : Main entrance, all path and corresponding operations.
  • models.py : Create database models to represent db tables.
  • schemes.py : Pydantic data schemas to handle data validation and data structure, make main file more readable.
  • TestPlan.md : Test plan records for main.py. Ordered by table, operation.

peewee_app

  • crud.py: All CRUD functions and make main file more readable.
  • database.py: Establish a Peewee db connection configure.
  • main.py : Main entrance, all path and corresponding operations.
  • models.py : Create database models to represent db tables.
  • schemes.py : Pydantic data schemas to handle data validation and data structure, make main file more readable.
  • TestPlan.md : Test plan records for main.py. Ordered by table, operation.

summer23's People

Contributors

aprilyao-01 avatar

Stargazers

xiaodi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.