Swoole\RecordSet::__construct PHP Method

__construct() public method

public __construct ( $db, $table, $primary, $select )
    function __construct($db, $table, $primary, $select)
    {
        $this->table = $table;
        $this->primary = $primary;
        $this->db = $db;
        $this->db_select = new SelectDB($db);
        $this->db_select->from($table);
        $this->db_select->primary = $primary;
        $this->db_select->select($select);
        $this->db_select->order($this->primary . " desc");
    }