This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Data Model for SQL Queries

Tags: None
(comma "," separated)
AchimRS
Registered Member
Posts
2
Karma
0

Data Model for SQL Queries

Sun Nov 19, 2006 11:15 pm
Hi all,
I would like to use the DCOP feature "query" from whitin scripts to access songs in the collection via SQL.

But I don't find any hint about the datamodel...  Could somebody give me a ER-model or textual description of the data-model inside amaroK 1.4.4

Thanks a lot
  Achim
User avatar
tante
Registered Member
Posts
47
Karma
0

Re: Data Model for SQL Queries

Tue Nov 21, 2006 9:37 am
Easiest way would be to just to dump the structure of your database.
For postgresql you can do that with pg_dump like this:
Code: Select all
pgdump -U USER -W --schema-only DBNAME

mysqldump works kinda similar and for sqlite you can just open the file with "sqlite" and use the ".dump" command. The information you get should be sufficient to do what you wanna do (the schema is not complex anyways).


"Governments can be useful to the governed only so long as inherent
tendencies toward tyranny are restrained."
Frank Herbert, 'God Emperor Of Dune'
pburness
Registered Member
Posts
37
Karma
0

Re: Data Model for SQL Queries

Thu Nov 23, 2006 5:50 pm
You could try schemaspy

This helps reverse engineer databases.
[url=http://schemaspy.sourceforge.net/]http://schemaspy.sourceforge.net/
[/url]
Phil


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]