Comments (22)
In that case you will need to write some custom code for those databases, @adriens
from schemacrawler-additional-command-lints-as-csv.
I will build this into SchemaCrawler.
from schemacrawler-additional-command-lints-as-csv.
Done.
from schemacrawler-additional-command-lints-as-csv.
What do you intend here? What value will be added to the CSV?
from schemacrawler-additional-command-lints-as-csv.
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.
For now, i did not yet found how to get this from connectin Metadatas...
from schemacrawler-additional-command-lints-as-csv.
@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.
Yep, looks like 😄 ...or would it possible to implement a schemacrawler interface on each database product ?
from schemacrawler-additional-command-lints-as-csv.
For postgres :
SELECT current_database();
from schemacrawler-additional-command-lints-as-csv.
For Oracle :
select * from global_name;
from schemacrawler-additional-command-lints-as-csv.
Excellent !!!
from schemacrawler-additional-command-lints-as-csv.
Waiting for schemacrawler/SchemaCrawler#230
from schemacrawler-additional-command-lints-as-csv.
from schemacrawler-additional-command-lints-as-csv.
Use schemacrawler.schema.DatabaseInfo.getServerInfo()
from schemacrawler-additional-command-lints-as-csv.
See schemacrawler/SchemaCrawler#238
from schemacrawler-additional-command-lints-as-csv.
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.
Thhanks to #23 things are now possible ! 🎆
from schemacrawler-additional-command-lints-as-csv.
Working on psql.
from schemacrawler-additional-command-lints-as-csv.
Now validating on Oracle 12.x...
from schemacrawler-additional-command-lints-as-csv.
Not able to connect to Oracle @sualeh see schemacrawler/SchemaCrawler#240
from schemacrawler-additional-command-lints-as-csv.
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.
Done with the sclint-catalogName
column.
from schemacrawler-additional-command-lints-as-csv.
Related Issues (11)
- Generate the csv that lists all the lints
- Add headers to csv HOT 2
- Use Lint.getLintId() as hitid HOT 3
- Use CrawlInfo.getRunId() as runid HOT 5
- Implement the dump of csv for table and row count HOT 1
- Produce csv that aggregates and precomputes quality scores
- Upgrade to latest schemacrawler runtime > 15.04.01 ->16.9.4
- hyphen after UUID csv name files
- Add option to count (or not) table rows
- New csv for table/columns HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from schemacrawler-additional-command-lints-as-csv.