Coder Social home page Coder Social logo

Comments (6)

davecramer avatar davecramer commented on September 26, 2024

What is the concept here ? I don't believe the API allows you to set a schema so this would be a non-api method ?

from pgjdbc.

alexismeneses avatar alexismeneses commented on September 26, 2024

Dheerendra,

Is the need fulfilled by

Connection.setSchema(String)

for which an implementation is already provided since commit ea55458 (PR #154)?

Or is it a different matter there?

from pgjdbc.

DheerendraRathor avatar DheerendraRathor commented on September 26, 2024

@alexismeneses connection.setSchema is fine, but I want to set it at the time of connection itself as a property, so it should get the schema at the time of connections and not after connecting. It can be defined as a property and then can be passed to connection Drivermanager.getConnection(url,properties)

from pgjdbc.

davecramer avatar davecramer commented on September 26, 2024

That's a little different than exposing a method.

What you really want is the default schema to be set.

Dave

Dave Cramer

On 20 May 2014 10:51, Dheerendra Rathor [email protected] wrote:

@alexismeneses https://github.com/alexismeneses connection.setSchema is
fine, but I want to set it at the time of connection itself as a property,
so it should get the schema at the time of connections and not after
connecting. It can be defined as a property and then can be passed to
connection Drivermanager.getConnection(url,properties)


Reply to this email directly or view it on GitHubhttps://github.com//issues/155#issuecomment-43636286
.

from pgjdbc.

alexismeneses avatar alexismeneses commented on September 26, 2024

Are any other JDBC driver out there implementing such a connection property? If so, what's the most common name for it?

Note that it will only save a method call in Java but it won't change the need to internally make a call to the backend after the connection has been opened.

As I understand it, a useful case would to make some schema unaware Java/JDBC programs to use a particular schema without even knowing it, just by being given a magic jdbc url property. It could be a nice feature.

from pgjdbc.

alexismeneses avatar alexismeneses commented on September 26, 2024

Dave, this one should be fixed now (commit d2c1ef7 PR #156).

@DheerendraRathor, the name of the property is currentSchema, it's merged into the master.

from pgjdbc.

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.