How to Init Databases With Quarkus

Sdílet
Vložit
  • čas přidán 1. 04. 2023
  • While developing Quarkus applications that use relational databases, we usually need to control or set the database schema and initial data. There are several approaches in Quarkus, including the dev services, and in this video we’ll see which approaches make sense for an efficient development workflow.
    More information: blog.sebastian-daschner.com/e...
    Example project: github.com/sdaschner/coffee-t...
    Quarkus on-demand course: www.sebastian-daschner.com/co...
    Quarkus workshop (Apr 17th & 18th): www.sebastian-daschner.com/wo...
  • Věda a technologie

Komentáře • 11

  • @ferjava
    @ferjava Před rokem +1

    Good tips! We actually don't need Postman, plain shellscript is waaay more efficient, nice ^^

  • @RafaelDurelli
    @RafaelDurelli Před rokem +1

    Awesome vid :D

  • @manee427
    @manee427 Před rokem

    Thanks perfect video. do we have something like JPARepository in Quarkus that make most of queried available out of the box or we have to always use plain SQL?

  • @Markosiiiiii
    @Markosiiiiii Před 11 měsíci

    Great Sebastian! I have a question. I have my query sql: " select p.* from pcr_perfil p order by( select count(ppu.id_usu_perfil) from pcr_perfil_usuario ppu where ppu.id_perfil = p.id_perfil ) asc
    " that's works fine in sql. Question. How to make that query from panache quarkus? Please can anyone translate it to panache query?

    • @SebastianDaschnerIT
      @SebastianDaschnerIT  Před 11 měsíci

      Well, in general you can directly execute native SQL queries, i.e. you can paste that into your code (e.g. with entity manager). But it might make sense to consider rewriting this query, in JPA query language in fact.

  • @stefanholtker3944
    @stefanholtker3944 Před rokem

    How about using liquibase with context / label for test environments testdata?

    • @SebastianDaschnerIT
      @SebastianDaschnerIT  Před rokem

      Haven't really used it as such, but yes, can surely work. What was your experience with it?

  • @chandanupadhyay-oi7vo
    @chandanupadhyay-oi7vo Před 3 měsíci

    Can we create only one Entity for two database ( with same attributes ) in the project