GetRootFromContext returns the working session's root from the context, along with the session.
(ctx *sql.Context)
| 85 | |
| 86 | // GetRootFromContext returns the working session's root from the context, along with the session. |
| 87 | func GetRootFromContext(ctx *sql.Context) (*dsess.DoltSession, *RootValue, error) { |
| 88 | return getRootFromContextForDatabase(ctx, "") |
| 89 | } |
| 90 | |
| 91 | // getRootFromContextForDatabase returns the working session's root from the context for a specific database, along with the session. |
| 92 | func getRootFromContextForDatabase(ctx *sql.Context, database string) (*dsess.DoltSession, *RootValue, error) { |
no test coverage detected