Giter Site home page Giter Site logo

Comments (22)

sualeh avatar sualeh commented on July 22, 2024 1

In that case you will need to write some custom code for those databases, @adriens

from schemacrawler-additional-command-lints-as-csv.

sualeh avatar sualeh commented on July 22, 2024 1

I will build this into SchemaCrawler.

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024 1

Done.

from schemacrawler-additional-command-lints-as-csv.

sualeh avatar sualeh commented on July 22, 2024

What do you intend here? What value will be added to the CSV?

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024

I mean the name of the database.

  • On Oracle the SID
  • On Postgres the 'database'
  • On SQL Server the 'catalog`

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024

For now, i did not yet found how to get this from connectin Metadatas...

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024

@sualeh , when on Oracle, a schema is not the databasename, in a word : schema != SID, same on psql.

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024

Yep, looks like 😄 ...or would it possible to implement a schemacrawler interface on each database product ?

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024

For postgres :

SELECT current_database();

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024

For Oracle :

select * from global_name;

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024

Excellent !!!

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024

Waiting for schemacrawler/SchemaCrawler#230

from schemacrawler-additional-command-lints-as-csv.

sualeh avatar sualeh commented on July 22, 2024

See https://stackoverflow.com/questions/7942520/relationship-between-catalog-schema-user-and-database-instance

from schemacrawler-additional-command-lints-as-csv.

sualeh avatar sualeh commented on July 22, 2024

Use schemacrawler.schema.DatabaseInfo.getServerInfo()

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024

See schemacrawler/SchemaCrawler#238

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024

Hi @sualeh , just gave it a try... unfortunately it did not change the actual behavior, the catalogName is still not retrieved ;-(

I've added this just after your code in the execute section :

System.out.println("FOUND DB NAME SID : <" + getDbCatalogName() + ">");

...and it remains empty.

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024

Thhanks to #23 things are now possible ! 🎆

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024

Working on psql.

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024

Now validating on Oracle 12.x...

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024

Not able to connect to Oracle @sualeh see schemacrawler/SchemaCrawler#240

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024

Connection OK, now focusing on getting the service_name from a standard sql user see schemacrawler/SchemaCrawler#241

from schemacrawler-additional-command-lints-as-csv.

adriens avatar adriens commented on July 22, 2024

Done with the sclint-catalogName column.

from schemacrawler-additional-command-lints-as-csv.

Related Issues (11)

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.