GithubHelp home page GithubHelp logo

gerritcodereview / gwtorm Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 2.0 4.43 MB

Tiny ORM - (mirror of http://gerrit.googlesource.com/gwtorm)

License: Apache License 2.0

Shell 0.16% GAP 0.79% Java 99.05%

gwtorm's Introduction

NOTE: This project is not actively maintained. If you are interested in using
it, or if you want to volunteer to take over as maintainer, contact
[email protected].

gwtorm's People

Contributors

spearce avatar dpursehouse avatar davido avatar dborowitz avatar agoerler avatar paladox avatar mfick avatar msohn avatar crangeratgoogle avatar martinsson avatar

Stargazers

Taeho Kim avatar

Watchers

James Cloos avatar GerritForge Ltd avatar  avatar

Forkers

brucezu davido

gwtorm's Issues

List all tables in the current database schema method should consider only current schema name.

When two separate gerrit applications are configured with same postgres database but two different schemas, Gerrit initializes first schema with required tables, however the second one fails with below error (1).

After looking at the sourcecode its pretty evident that connected schema is not considered when getting the list of tables & gerrit's assuming that the tables already exists and fails when trying to access them. But these tables are existing in a different schema.

If we can pass the schema name to the getTables method, the search for the tables would be restricted to only to the connected schema. This would enable the usecase of multiple gerrit applications connecting to same postgres database with different schema's. (This is common in multi-tenant applications)

(1)
gerrit_bootstrap_error.pdf

Exception in thread "main" com.google.gwtorm.server.OrmException: insert failure on schema_version
...
Caused by: java.sql.BatchUpdateException: Batch entry 0 INSERT INTO schema_version(version_nbr,singleton)VALUES(129,'X') was aborted: ERROR: relation "schema_version" does not exist

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.