コード例 #1
0
ファイル: build_prepared.go プロジェクト: pkdevboxy/query
func BuildPrepared(stmt algebra.Statement, datastore, systemstore datastore.Datastore,
	namespace string, subquery bool) (*plan.Prepared, error) {
	operator, err := Build(stmt, datastore, systemstore, namespace, subquery)
	if err != nil {
		return nil, err
	}

	signature := stmt.Signature()
	return plan.NewPrepared(operator, signature), nil
}