Coder Social home page Coder Social logo

Comments (9)

morphace avatar morphace commented on July 18, 2024 1

Done: #1809

from blaze-persistence.

beikov avatar beikov commented on July 18, 2024

Hi there.
Nobody requested support for CockroachDB yet, so that's why Blaze-Persistence has no built-in support :)
We can treat it like PostgreSQL for the purpose of function registration and so on, but since it takes a lot of time and effort to setup and maintain automated testing, I hope you understand that there will never be "first class" support like for other databases. This would be a best effort thing.

from blaze-persistence.

morphace avatar morphace commented on July 18, 2024

Hi! Ok - what I could try to do is to check how it does with PG set as dialect. However it seems to auto-detect the dialect from the JPA one? Is there a way to override the auto-detected dialect?

from blaze-persistence.

beikov avatar beikov commented on July 18, 2024

The Hibernate integration detects the database based on the configured dialect. If your dialect extends the PostgreSQLDialect, it is considered a PostgreSQL variant.

from blaze-persistence.

morphace avatar morphace commented on July 18, 2024

That's what I expected - but I use CockroachDB192Dialect which is not derived from PostgreSQLDialect . Therefore, I'll try to find a way to set the dialect for blaze persistence manually, if there is one at all?

from blaze-persistence.

beikov avatar beikov commented on July 18, 2024

It seems that we detect CockroachDB already, but don't do functions registrations for it yet. See https://github.com/Blazebit/blaze-persistence/blob/main/integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/function/AbstractHibernateEntityManagerFactoryIntegrator.java#L185C26-L185C26

I'd very much appreciate if you could create a PR that just copies all the lines containing "postgresql" and replaces with "cockroach": https://github.com/Blazebit/blaze-persistence/blob/main/core/impl/src/main/java/com/blazebit/persistence/impl/CriteriaBuilderConfigurationImpl.java#L582

from blaze-persistence.

morphace avatar morphace commented on July 18, 2024

excatly, that's what i thought could work...

from blaze-persistence.

morphace avatar morphace commented on July 18, 2024

Updated according suggestions

from blaze-persistence.

beikov avatar beikov commented on July 18, 2024

Fixed via 178a9f6

from blaze-persistence.

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.