How to hide JDBC connection credentials from git? - Mailing list pgsql-general

From Alexander Farber
Subject How to hide JDBC connection credentials from git?
Date
Msg-id CAADeyWj=wV1iWacxEECChUwq4FEbmb19jz4HW6L1hypo4whSWw@mail.gmail.com
Whole thread Raw
Responses Re: How to hide JDBC connection credentials from git?
List pgsql-general
Hello,

I work on several small Java projects (using Maven+NetBeans) and store them in a public git repository.

I would like to use PostgreSQL JDBC in some of the projects, but don't want to make the connection credentials of my database public.

Surely there are other developers out there, who have already faced similar problem.

Please share your solutions.

It is probably possible to put the database name/user/password into a *.properties file and then ignore it in git repository, but keep it in the workarea?

Thank you
Alex

pgsql-general by date:

Previous
From: Brian Sutherland
Date:
Subject: Re: After replication failover: could not read block X in file Y read only 0 of 8192 bytes
Next
From: Szymon Lipiński
Date:
Subject: Re: How to hide JDBC connection credentials from git?