Giter Site home page Giter Site logo

Comments (6)

janithb avatar janithb commented on June 16, 2024

Do you want a custom name for audit tables?

from audit4j-core.

msamichev avatar msamichev commented on June 16, 2024

No, I would like have opportunity to set only schema name for table. For example if I use postgresql then your plugin creates table in public schema and full name of audit table looks like "public.audit". And I need to have opportunity to change schema name to look like this "custom_schema.audit".

Thanks

from audit4j-core.

janithb avatar janithb commented on June 16, 2024

You can specify the schema parameter in the connection url.

jdbc:postgresql://localhost:5432/mydatabase?currentSchema=custom_schema

Please refer below links.

http://stackoverflow.com/questions/4168689/is-it-possible-to-specify-schema-when-connecting-to-postgres-with-jdbc

https://jdbc.postgresql.org/documentation/94/connect.html#connection-parameters

from audit4j-core.

msamichev avatar msamichev commented on June 16, 2024

Yep, as a workaround It can be done, but in our app, we have several schemas simultaneously and we use ORM (in persistence layer) and we wouldn't like to set exact schema name in connection url. We would like to have more flexible solution to set schema name (and as optional - to set table name).

Can you add additional parameter in DbHandler definition?

Thanks.

from audit4j-core.

janithb avatar janithb commented on June 16, 2024

Yes. This is possible. We will add this to next release, however we have to test it before release a major release. Appreciate if you can add this feature as a contribution. The source code is pretty simple. We do accept pull requests.

from audit4j-core.

janithb avatar janithb commented on June 16, 2024

Fixed in 2.5.0

from audit4j-core.

Related Issues (20)

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.