Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-948

Move DBAppender SQL scripts from src/main/java to src/main/resources

    XMLWordPrintable

Details

    Description

      Putting those scripts in logback jars allows to use them while testing your code with an in-memory database like this:

      jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;INIT=RUNSCRIPT FROM 'classpath:ch/qos/logback/classic/db/script/h2.sql'

      pull request: https://github.com/qos-ch/logback/pull/125]

      Attachments

        Activity

          People

            tony19 Tony Trinh
            xdury Xavier Dury
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: