|
|
| Author |
Message |
steki
Joined: 01 Aug 2008 Posts: 3
|
|
| Back to top |
|
 |
steki
Joined: 01 Aug 2008 Posts: 3
|
|
| Back to top |
|
 |
steki
Joined: 01 Aug 2008 Posts: 3
|
Posted: Sun Aug 10, 2008 8:48 pm Post subject: Re: generic database supportb (against 0.8.7b) |
|
|
Hello,
please find attached schema generator that will generate schema for three databases
postgresql
mysql
sqlite
of course cacti does not support them but that would be a good start for any further development if you ask me (no one do but i don't care...)
anyway gen.pl is borrowed from zabbix project, and as it is GPL licensed this will not be a problem for this usage
please be aware that oracle version is not usable because few things
1. it is not create sequences and triggers (it is my plan for few next days to add it)
2. one of tables has "rows" column which is special word for oracle so it is NOT possible to use it as it is ...
3. capital letters for table names and return values for keynames in arrays returned from
db_fetch_asoc()
that is it for now ...
| Description: |
cacti-db/Makefile (obvious...) cacti-db/gen.pl (db generator script) cacti-db/dumpdb.sh (db dump all data from cacti database into file with many inserts :) ) cacti-db/data.sql (extracted data with dumpdb.sh) cacti-db/schema.sql this is main thing that ca |
|
 Download |
| Filename: |
cacti-db.tgz |
| Filesize: |
35.51 KB |
| Downloaded: |
47 Time(s) |
|
|
| Back to top |
|
 |
dandv
Joined: 17 Nov 2008 Posts: 1
|
Posted: Mon Nov 17, 2008 11:46 pm Post subject: Re: generic database supportb (against 0.8.7b) |
|
|
| steki wrote: | | Honestly I didn't checked on this forum if someone has done any job done in regards of porting cacti to other databases |
Well, someone has, since 2007. See this thread, PostgreSQL / Generic Database - PATCH.
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9736 Location: MI, USA
|
Posted: Tue Nov 18, 2008 7:13 am Post subject: |
|
|
As a developer, we have not implemented that patch due to the fact that not one of the key developers uses postresql, oracle, or mssql. Until that changes, it's hard for us to support these other databases.
Maybe we shouldn't worry about it working and just "hope" that the submissions by others work. Comments?
TheWitness
|
|
| Back to top |
|
 |
|