Documentation ¶
Index ¶
Constants ¶
const ( DoltDriverName = "dolt" CommitNameParam = "commitname" CommitEmailParam = "commitemail" DatabaseParam = "database" MultiStatementsParam = "multistatements" )
Variables ¶
This section is empty.
Functions ¶
func LoadMultiEnvFromDir ¶
func LoadMultiEnvFromDir( ctx context.Context, cfg config.ReadWriteConfig, fs filesys.Filesys, path, version string, ) (*env.MultiRepoEnv, error)
LoadMultiEnvFromDir looks at each subfolder of the given path as a Dolt repository and attempts to return a MultiRepoEnv with initialized environments for each of those subfolder data repositories. subfolders whose name starts with '.' are skipped.
Types ¶
type DoltConn ¶
type DoltConn struct { DataSource *DoltDataSource // contains filtered or unexported fields }
DoltConn is a driver.Conn implementation that represents a connection to a dolt database located on the filesystem
func (*DoltConn) BeginTx ¶
BeginTx starts and returns a new transaction. If the context is canceled by the user the sql package will call Tx.Rollback before discarding and closing the connection.
type DoltDataSource ¶
DoltDataSource provides access to the data provided by the connection string
func ParseDataSource ¶
func ParseDataSource(dataSource string) (*DoltDataSource, error)
ParseDataSource takes the connection string and parses out the parameters and the local filesys directory where the dolt database lives
func (*DoltDataSource) ParamIsTrue ¶
func (ds *DoltDataSource) ParamIsTrue(paramName string) bool
type QuerySplitter ¶
type QuerySplitter struct {
// contains filtered or unexported fields
}
func NewQuerySplitter ¶
func NewQuerySplitter(str string) *QuerySplitter
func (*QuerySplitter) HasMore ¶
func (qs *QuerySplitter) HasMore() bool
func (*QuerySplitter) Next ¶
func (qs *QuerySplitter) Next() (string, error)