示例#1
0
 /**
  * Returns the SQL this atom represents
  *
  * @param \r8\iface\DB\Link $link The database connection this atom
  *      is being created against. This is being passed in for escaping
  *      purposes
  * @return String
  */
 public function toAtomSQL(\r8\iface\DB\Link $link)
 {
     return $link->quote(\r8\reduce($this->value));
 }
示例#2
0
 /**
  * Returns a brief string that can be used to describe this connection
  *
  * @return String Returns a URI that loosely identifies this connection
  */
 public function getIdentifier()
 {
     return $this->link->getIdentifier();
 }
示例#3
0
 /**
  * Returns the SQL string for this expression
  *
  * @param \r8\iface\DB\Link $link The database connection this WHERE clause
  *      is being run against. This is being passed in for escaping purposes
  * @return String
  */
 public function toSelectSQL(\r8\iface\DB\Link $link)
 {
     return ($this->table && $this->database ? $link->quoteName($this->database) . "." : "") . ($this->table ? $link->quoteName($this->table) . "." : "") . "*";
 }
示例#4
0
 /**
  * Returns the SQL FROM clause
  *
  * @param \r8\iface\DB\Link $link The database connection this WHERE clause
  *      is being run against. This is being passed in for escaping purposes
  * @return String
  */
 public function toFromSQL(\r8\iface\DB\Link $link)
 {
     return ($this->database ? $link->quoteName($this->database) . "." : "") . $link->quoteName($this->table) . ($this->alias ? " AS " . $link->quoteName($this->alias) : "");
 }
示例#5
0
 /**
  * Returns the SQL this atom represents
  *
  * @param \r8\iface\DB\Link $link The database connection this atom
  *      is being created against. This is being passed in for escaping
  *      purposes
  * @return String
  */
 public function toAtomSQL(\r8\iface\DB\Link $link)
 {
     return ($this->table && $this->database ? $link->quoteName($this->database) . "." : "") . ($this->table ? $link->quoteName($this->table) . "." : "") . $link->quoteName($this->field);
 }