How i can get instance of data base

Hi,
i am working on module for oxid.
i want to know how i can get instance of data_base in my own module file?
i want to execute query in my onw file .
so i need access to db.

Hi,
i am working on module for oxide.
I want to know how i can get instance of data base.
I want to execute query in my onw file.
So i need access to db.

like this:

Hi, thanks for reply .
i think it will work when i include oxdb.php file into my own file.

i know how to write the query . but i have my own file in my module folder.
mudule_abc/test.php.
in test.php i need data base connection. here i want to execute query.

if test.php is supposed to be model or controller you can use the mentioned code.
if you want to run test.php from cron job, you need to include /require bootstrap.php from shop root directory and then you can use the mentioned code

[QUOTE=vanilla thunder;184630]if test.php is supposed to be model or controller you can use the mentioned code.
if you want to run test.php from cron job, you need ro include /require bootstrap.php from shop root directory and then you can use the mentioned code[/QUOTE]

That’s the good ans .
It works for me .
thank you.
i think we share this ans i didn’t found this information at form.