summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8a630b5)
raw | patch | inline | side by side (parent: 8a630b5)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 Mar 2008 13:38:49 +0000 (13:38 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 Mar 2008 13:38:49 +0000 (13:38 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9357 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/tests/sqlite-check-fai.pl | [new file with mode: 0755] | patch | blob |
gosa-si/tests/sqlite-check-packages-list.pl | [new file with mode: 0755] | patch | blob |
gosa-si/tests/sqlite-check-server.pl | patch | blob | history |
diff --git a/gosa-si/tests/sqlite-check-fai.pl b/gosa-si/tests/sqlite-check-fai.pl
--- /dev/null
@@ -0,0 +1,58 @@
+#!/usr/bin/perl
+#===============================================================================
+#
+# FILE: DBD-SQlite.pl
+#
+# USAGE: ./DBD-SQlite.pl
+#
+# DESCRIPTION:
+#
+# OPTIONS: ---
+# REQUIREMENTS: ---
+# BUGS: ---
+# NOTES: ---
+# AUTHOR: (), <>
+# COMPANY:
+# VERSION: 1.0
+# CREATED: 20.12.2007 08:54:52 CET
+# REVISION: ---
+#===============================================================================
+
+use strict;
+use warnings;
+use GOSA::DBsqlite;
+use Data::Dumper;
+
+print "START\n";
+my $res;
+my $db_name;
+
+$db_name = "/var/lib/gosa-si/fai.db";
+if (-e $db_name) {
+ print "\n############################################################\n";
+ my $table_name = "fai_server";
+ print "$db_name\n";
+ print "$table_name\n";
+
+ my $sqlite = GOSA::DBsqlite->new($db_name);
+ my $col_names = $sqlite->get_table_columns($table_name);
+ print join(', ', @{ $col_names } )."\n" ;
+ my $answer = $sqlite->show_table($table_name);
+ print $answer."\n";
+}
+
+$db_name = "/var/lib/gosa-si/fai.db";
+if (-e $db_name) {
+ print "\n############################################################\n";
+ my $table_name = "fai_release";
+ print "$db_name\n";
+ print "$table_name\n";
+
+ my $sqlite = GOSA::DBsqlite->new($db_name);
+ my $col_names = $sqlite->get_table_columns($table_name);
+ print join(', ', @{ $col_names } )."\n" ;
+ my $answer = $sqlite->show_table($table_name);
+ print $answer."\n";
+}
+
+print "\nFINISH\n";
diff --git a/gosa-si/tests/sqlite-check-packages-list.pl b/gosa-si/tests/sqlite-check-packages-list.pl
--- /dev/null
@@ -0,0 +1,46 @@
+#!/usr/bin/perl
+#===============================================================================
+#
+# FILE: sqlite_check_packages_list.pl
+#
+# USAGE: ./sqlite_check_packages_list.pl
+#
+# DESCRIPTION:
+#
+# OPTIONS: ---
+# REQUIREMENTS: ---
+# BUGS: ---
+# NOTES: ---
+# AUTHOR: (), <>
+# COMPANY:
+# VERSION: 1.0
+# CREATED: 28.02.2008 11:09:15 CET
+# REVISION: ---
+#===============================================================================
+
+use strict;
+use warnings;
+use GOSA::DBsqlite;
+use Data::Dumper;
+
+print "START\n";
+my $res;
+my $db_name;
+
+
+$db_name = "/var/lib/gosa-si/packages.db";
+if (-e $db_name) {
+ print "\n############################################################\n";
+ my $table_name = "packages_list";
+ print "$db_name\n";
+ print "$table_name\n";
+
+ my $sqlite = GOSA::DBsqlite->new($db_name);
+ my $col_names = $sqlite->get_table_columns($table_name);
+ print join(', ', @{ $col_names } )."\n" ;
+ my $answer = $sqlite->show_table($table_name);
+ print $answer."\n";
+}
+
+
+print "\nFINISH\n";
index 5b153316728fc1b2dd040fb99d8efa76c188769e..0940a30e717fd13a1cd39a8bbc50a3590078d5f5 100755 (executable)
print $answer."\n";
}
-$db_name = "/var/lib/gosa-si/fai.db";
-if (-e $db_name) {
- print "\n############################################################\n";
- my $table_name = "fai_release";
- print "$db_name\n";
- print "$table_name\n";
-
- my $sqlite = GOSA::DBsqlite->new($db_name);
- my $col_names = $sqlite->get_table_columns($table_name);
- print join(', ', @{ $col_names } )."\n" ;
- my $answer = $sqlite->show_table($table_name);
- print $answer."\n";
-}
-
print "\nFINISH\n";