Giter VIP home page Giter VIP logo

Comments (5)

strongduanmu avatar strongduanmu commented on September 27, 2024 1

Hi @jonaskahn @airh2o, you can try config single rule to load related table metadata. For more details, you can refer this doc - https://shardingsphere.apache.org/document/current/cn/faq/#%E5%8D%95%E8%A1%A8-table-or-view-s-does-not-exist-%E5%BC%82%E5%B8%B8%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3.

from shardingsphere.

airh2o avatar airh2o commented on September 27, 2024

so do i

from shardingsphere.

jonaskahn avatar jonaskahn commented on September 27, 2024

I'll try in next week

from shardingsphere.

Feng-xs avatar Feng-xs commented on September 27, 2024

"I'm encountering the same issue when trying to implement sharding rules."
sharding version: 5.5.0
springboot version: 3.2.1
image

from shardingsphere.

jonaskahn avatar jonaskahn commented on September 27, 2024

Hi @jonaskahn @airh2o, you can try config single rule to load related table metadata. For more details, you can refer this doc - https://shardingsphere.apache.org/document/current/cn/faq/#%E5%8D%95%E8%A1%A8-table-or-view-s-does-not-exist-%E5%BC%82%E5%B8%B8%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3.

I confirmed this page will solve the issue.
If you're using Kotlin or Java, you can take a glance on my configuration:

    private fun createRuleConfiguration(): Collection<RuleConfiguration> {
        val result: MutableCollection<RuleConfiguration> = LinkedList()

        // Add new configuration to load single rule
        result.add(createSingleRuleConfiguration())

        result.add(createReadwriteSplittingRuleConfiguration())
        return result
    }

    private fun createSingleRuleConfiguration(): SingleRuleConfiguration {
        val rule = SingleRuleConfiguration()
        rule.tables = listOf("*.*")
        return rule
    }

Thanks @strongduanmu

from shardingsphere.

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.