48 $tmp=NOALYSS_HOME.
"/tmp/";
49 $tmpdir=
$tmp.
"db-".microtime(TRUE);
54 $db->open(
$tmp.
"/".$this->get_file());
55 $db->extractTo($tmpdir);
60 $seq=
$cn->get_value(
"select nextval('s_modid')");
62 $sql=sprintf(
" create database %smod%d encoding='utf8'",
domaine,
$seq);
68 $newdb->execute_script($tmpdir.
'/schema.sql');
69 $newdb->execute_script($tmpdir.
'/data.sql');
70 $newdb->execute_script($tmpdir.
'/constraint.sql');
73 $description = sprintf(_(
"Installé le %s"),date(
"d-m-Y h:i:s"));
74 $cn->exec_sql(
" insert into modeledef (mod_id,mod_name,mod_desc) values ($1,$2,$3)",
contains the class for connecting to Noalyss
package noalyss is the mother class of the class to install and download package
Show , download and install template database for accountancy from the Package repository.
install()
Install the template.