GithubHelp home page GithubHelp logo

nikita9604 / custom-query-in-spring-webflux-with-intellij Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 45 KB

To create different types of Custom Queries in Spring WebFlux with IntelliJ over a Postgres Database.

License: MIT License

Java 100.00%
custom-query spring-webflux query postgresql r2dbc r2dbc-postgresql flux mono handler router-functions sql intellij intellij-idea

custom-query-in-spring-webflux-with-intellij's Introduction

Custom-Query-in-Spring-WebFlux-with-IntelliJ

To create different types of Custom Queries in Spring WebFlux with IntelliJ over a Postgres Database.

Summary of the Project :

  • Created 2 entities/tables namely - Patient and Doctor within a postgres database and link both together.

create table patient (id serial primary key, name text, age integer);

create table doctor (did serial primary key, dname text, specs text, pid integer, CONSTRAINT "pid_FK" FOREIGN KEY (pid) REFERENCES public.patient(id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE SET NULL);

Perform different CRUD operations for both tables

  • Add 1 entry of Patient by Id
  • Get all list of Patients
  • Get Patient by Id
  • Update Patient (find and match by PID)
  • Delete Patient by PId

Same CRUD operations for Doctor table.

Custom Queries created are mentioned below

Patient Repository
  • Get only Top 3 entry with age in descending order
  • Get all Patient entries through specified string by user contained in the name
  • Get all Patient entries having age > age specified by user
  • Get only the Patient entry through specified id by user
Doctor Repository
  • Get all Doctor entries through specified specs by user
  • Get all Doctor entries through specified specs by user with name in descending order.
  • Get only the Doctor entry through specified name by user
  • Update only specs of the Doctor entry through specified name by user
  • Get all Doctor entries through specified id by user

Perform JOIN Multiple Tables in R2DBC and Spring WebFlux for Relational Database

  • This is also included in the application that performs JOIN between Patient and Doctor

custom-query-in-spring-webflux-with-intellij's People

Contributors

nikita9604 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.