/** * @param DriverInterface $driver * @return string */ private function compileValues(DriverInterface $driver) { $rows = []; foreach ($this->values as $values) { $rows[] = '"' . implode('", "', $driver->escapeValues($values)) . '"'; } return '(' . implode('), (', $rows) . ')'; }
/** * @inheritDoc */ public function compile(DriverInterface $driver) { return $driver->quote($this->ref); }
/** * @param DriverInterface $driver * @return string */ private function compileValues(DriverInterface $driver) { return '("' . implode('", "', $driver->escapeValues($this->values)) . '")'; }
/** * @param DriverInterface $driver * @param string $compiled * @return string */ private function compileRegular(DriverInterface $driver, $compiled) { if (!$this->nullable) { $compiled .= ' NOT NULL'; } if (null !== $this->defval) { $compiled .= ' DEFAULT "' . $driver->escapeValue($this->defval) . '"'; } return $compiled; }