This explains SQL stored procedures and their advantages.

  • Matthew@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    My boss is a DB dev and requires that all our database transactions go through stored procedures. Oh, and those stored procedures contain all our business logic.

    • CodeBlooded@programming.dev
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      1 year ago

      My condolences. This is the stuff Robert C. Martin talks about in his book “Clean Architecture”; database vendors locking you into their tech.

      Your boss isn’t just a developer, he’s a *db developer *. From his perspective, the database is a god rather than a means to store information.

      I should add onto my original post that the queries should strive to be as database agnostic as possible. This alleviates a lot of pain when the company decides to move from one DBMS to another.

      Is it safe to assume your stored procedures have lots of DBMS specific functions and syntax sprinkled among the code?