Lines Matching defs:sql
56 $exportfile = $conf['tmpdir'] . '/' . $this->db->getDbName() . '.sql';
58 header('Content-Type: text/sql');
59 header('Content-Disposition: attachment; filename="' . $this->db->getDbName() . '.sql";');
71 $sql = Tools::SQLstring2array(file_get_contents($importfile));
74 foreach ($sql as $s) {
85 $this->querySaver->saveQuery($INPUT->str('name'), $INPUT->str('sql'));
122 $form->addTextarea('sql')->addClass('edit');
130 if ($INPUT->has('sql')) $this->showQueryResults($INPUT->str('sql'));
171 * @param string $sql
173 protected function showQueryResults($sql)
177 $sql = Tools::SQLstring2array($sql);
178 foreach ($sql as $s) {
259 'sql' => 'SELECT val FROM opts WHERE opt=\'dbversion\'',
262 'sql' => 'SELECT name,sql FROM sqlite_master WHERE type=\'table\' ORDER BY name',
265 'sql' => 'SELECT name,sql FROM sqlite_master WHERE type=\'index\' ORDER BY name',
280 ->attr('accept', '.sql')
307 $link = $this->selfLink(false, ['sql' => $query['sql']]);