SQLNodeToDoltTable takes a sql.Node and returns a *sqle.DoltTable if either the node is a Dolt table, or it is a wrapper or container that holds a Dolt table. Returns nil if a Dolt table could not be found. If the node is not a sql.Table, then this will return nil.
(n sql.Node)
| 24 | // wrapper or container that holds a Dolt table. Returns nil if a Dolt table could not be found. If the node is not a |
| 25 | // sql.Table, then this will return nil. |
| 26 | func SQLNodeToDoltTable(n sql.Node) *sqle.DoltTable { |
| 27 | tbl, ok := n.(sql.Table) |
| 28 | if !ok { |
| 29 | return nil |
| 30 | } |
| 31 | return SQLTableToDoltTable(tbl) |
| 32 | } |
| 33 | |
| 34 | // SQLTableToDoltTable takes a sql.Table and returns a *sqle.DoltTable if either the table is a Dolt table, or it is a |
| 35 | // wrapper or container that holds a Dolt table. Returns nil if a Dolt table could not be found. |
no test coverage detected