Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: How can i read database ...  (Read 3679 times)

0 Members and 1 Guest are viewing this topic.

adema

  • Guest
How can i read database ...
« on: June 23, 2007, 11:38:34 AM »

Hi everyone,

I'm developing some tools for my network, and i need to read the files *.db in the anope directory, but i found no informations about the type of database and how can i open/read/use it.
I hope you could help me

adema

P.S: i'm using python per aps someone could give the name of a module which can read the db's files.
Logged

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
(No subject)
« Reply #1 on: June 23, 2007, 11:48:44 AM »

As far as I know, theyre a custom format so you would need custom coding to read them too. If you enabled MySQL on Anope, it will dump to MySQL and to the .db's too so you can then use the MySQL for your apps.

Bear in mind neither the .db's or MySQL DB's are live EVER. THey are both written to periodically if MySQL is enabled, or just the .db's without MySQL.
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

adema

  • Guest
(No subject)
« Reply #2 on: June 23, 2007, 11:57:23 AM »

Well MySQL in anope is not stable at the moment so i prefer keeping my .db files. But could someone give me the specs of the file format ? Thx ...
Logged

katsklaw

  • Guest
(No subject)
« Reply #3 on: June 23, 2007, 12:50:37 PM »

There is no uniform document that explains the syntax for reading the .db  files. You'll have to read the source code to find out.
Logged

adema

  • Guest
(No subject)
« Reply #4 on: June 23, 2007, 02:20:12 PM »

Well i will propably code entirely my services ...
Logged
Pages: [1]   Go Up