Registered Member
|
oke Amarok2 is now based on mysql embedded... fine... but is it still possible to access the database directly in a script?
something like...
...would be nice but this driver doesn't seem to exist -.- any workaround proposals? |
Moderator
|
From the script manager, use:
sql = Amarok.collection.escape( "SELECT columns FROM tables" ) results = Amarok.Collection.query ( sql ) You won't be able to gain direct access to the MySQL-embedded database as it does not accept connections on the standard mysql socket. |
Registered Member
|
thx, it solves my problem! It even seems to be faster than with sqllite...
|
Registered Member
|
ReferenceError: escape is not defined ...?
I'm trying to manipulate the database because of some reasons and I didn't found a way to connect to the database... |
Moderator
|
There was a typo in my post. use Amarok.Collection.escape() notice the upper case C
|
Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, sandyvee, Sogou [Bot]