EvaluableExpression_sql.go
func (this EvaluableExpression) ToSQLQuery() (string, error) {

	var stream *tokenStream
	var transactions *expressionOutputStream
	var transaction string
	var err error

	stream = newTokenStream(this.tokens)
	transactions = new(expressionOutputStream)

	for stream.hasNext() {

		transaction, err = this.findNextSQLString(stream, transactions)
		if err != nil {
			return "", err
		}

		transactions.add(transaction)
	}

	return transactions.createString(" "), nil
}
func (this EvaluableExpression) ToSQLQuery() (string, error) {

	var stream *tokenStream
	var transactions *expressionOutputStream
	var transaction string
	var err error

	stream = newTokenStream(this.tokens)
	transactions = new(expressionOutputStream)

	for stream.hasNext() {

		transaction, err = this.findNextSQLString(stream, transactions)
		if err != nil {
			return "", err
		}

		transactions.add(transaction)
	}

	return transactions.createString(" "), nil
}
func ( this EvaluableExpression ) ToSQLQuery ( ) ( string , error ) { var stream * tokenStream var transactions * expressionOutputStream var transaction string var err error stream = newTokenStream ( this . tokens ) transactions = new ( expressionOutputStream ) for stream . hasNext ( ) { transaction , err = this . findNextSQLString ( stream , transactions ) if err != nil { return " " , err } transactions . add ( transaction ) } return transactions . createString ( " " ) , nil }
/*
	Returns a string representing this expression as if it were written in SQL.
	This function assumes that all parameters exist within the same table, and that the table essentially represents
	a serialized object of some sort (e.g., hibernate).
	If your data model is more normalized, you may need to consider iterating through each actual token given by `Tokens()`
	to create your query.

	Boolean values are considered to be "1" for true, "0" for false.

	Times are formatted according to this.QueryDateFormat.
*/
/ * Returns a string representing this expression as if it were written in SQL . This function assumes that all parameters exist within the same table and that the table essentially represents a serialized object of some sort ( e . g . hibernate ) . If your data model is more normalized you may need to consider iterating through each actual token given by Tokens () to create your query .