Documentation ¶
Index ¶
- func MakeSessionFromEnv() *pb.Session
- func ResolveSQLProgram(sqlStmts []*parser.SQLFlowStmt, logger *log.Logger) ([]ir.SQLFlowStmt, error)
- func RewriteStatementsWithHints(stmts []*parser.SQLFlowStmt, dialect string) []*parser.SQLFlowStmt
- func RunSQLProgram(sqlProgram string, modelDir string, session *pb.Session) *pipe.Reader
- type EndOfExecution
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeSessionFromEnv ¶
MakeSessionFromEnv returns proto.Session which comes from the environment variables
func ResolveSQLProgram ¶
func ResolveSQLProgram(sqlStmts []*parser.SQLFlowStmt, logger *log.Logger) ([]ir.SQLFlowStmt, error)
ResolveSQLProgram accepts parse result from parser and returns a list of SQLFlowStmt
func RewriteStatementsWithHints ¶
func RewriteStatementsWithHints(stmts []*parser.SQLFlowStmt, dialect string) []*parser.SQLFlowStmt
RewriteStatementsWithHints combines the hints into the standard SQL(s)
FIXME(weiguoz): I'm not happy with such an implementation. I mean it is not clean that sqlflow handles such database relative details.
Types ¶
type EndOfExecution ¶
EndOfExecution will push to the pipe when one SQL statement execution is finished.
Click to show internal directories.
Click to hide internal directories.