Documentation ¶
Index ¶
- func Connect(apiUrl, email, password string) (*connectors.RestAPI, error)
- func Error(message string) error
- func HandleError(err error)
- func LoadEnvFromFile(filepath string) error
- func MindsDBClient(baseURL string) *connectors.RestAPI
- type Database
- type Model
- type Project
- func (p *Project) DropModel(name string) string
- func (p *Project) GetModel(name string) (*Model, error)
- func (project *Project) GetView(name string) (map[string]interface{}, error)
- func (project *Project) ListViews() (ResultSet, error)
- func (p *Project) NewModel(modelName string, predictColumn string, engine string, ...) (*Model, error)
- func (project *Project) NewView(name string, sql string) *View
- func (p *Project) Query(sql, database string) (*Query, error)
- type Query
- type ResultSet
- type Server
- func (s *Server) CreateProject(name string) (*Project, error)
- func (s *Server) DropProject(name string) error
- func (s *Server) GetDatabase(name string) (*Database, error)
- func (s *Server) GetProject(name string) (*Project, error)
- func (s *Server) ListDatabases() []connectors.ColumnType
- func (s *Server) ListModels(project string) ([]Model, error)
- func (s *Server) ListProjects() []*Project
- type Skill
- type Table
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶
func HandleError(err error)
func LoadEnvFromFile ¶
func MindsDBClient ¶
func MindsDBClient(baseURL string) *connectors.RestAPI
Types ¶
type Database ¶
type Database struct { Name string Tables []connectors.Record Server *Server Api *connectors.RestAPI }
func NewDatabase ¶
func (*Database) CreateTable ¶
func (*Database) ListTables ¶
type Model ¶
type Model struct { Name string Engine string Project *Project Version float64 Status string Accuracy float64 PredictColumn string UpdateStatus string MindsdbVersion string TrainingOptions map[string]interface{} Parameters map[string]string }
type Project ¶
type Project struct { Name string Server *Server Api *connectors.RestAPI }
func NewProject ¶
type Query ¶
type Query struct { Api *connectors.RestAPI Sql string DBName string ResultSet ResultSet }
type ResultSet ¶
type ResultSet struct { Columns []connectors.ColumnType Rows []connectors.Record }
type Server ¶
type Server struct {
Api *connectors.RestAPI
}
func NewServer ¶
func NewServer(api *connectors.RestAPI) *Server
func (*Server) DropProject ¶
func (*Server) ListDatabases ¶
func (s *Server) ListDatabases() []connectors.ColumnType
func (*Server) ListProjects ¶
type Skill ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.