Documentation
¶
Overview ¶
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
DataAvailable chan struct{}
CommitDone chan struct{}
IsServerAction bool
IsClientAction bool
Action string
IsQuery bool
Input []interface{}
Output [][]interface{}
OutputPtr [][]interface{}
LastInsertedId int64
RowsAffected int64
Error string
}
Fields common to all Executor instances
func (*Executor) SetCommitDone ¶
func (e *Executor) SetCommitDone()
func (*Executor) SetDataAvailable ¶
func (e *Executor) SetDataAvailable()
type ExecutorImpl ¶
type ExecutorImpl interface {
// Done in the echo goroutine
// receive a web socket as an input to fullfill the internal struct of the instance.
SetInput(input []interface{})
// Done in the sql execution goroutine
// Passwd a reference to the current transaction, passed a reference to the dictionary with all prepared statements, and the one that acts as cache
// sp: savepoint idenfiticator: used to rollback or release the current execution
Execute(stmt *sql.Stmt, tx *sql.Tx, sp string)
SetDataAvailable()
SetCommitDone()
GetAction() string
}
Executor implementation Interface
Click to show internal directories.
Click to hide internal directories.