Documentation ¶
Index ¶
- func New() (interface{}, error)
- type ConnectionParameters
- type Planetscale
- func (c Planetscale) Close() error
- func (c Planetscale) Connection(ctx context.Context) (*planetscale.Client, error)
- func (p *Planetscale) DeleteUser(ctx context.Context, req dbplugin.DeleteUserRequest) (dbplugin.DeleteUserResponse, error)
- func (c Planetscale) Init(ctx context.Context, conf map[string]interface{}, verifyConnection bool) (map[string]interface{}, error)
- func (p *Planetscale) Initialize(ctx context.Context, req dbplugin.InitializeRequest) (dbplugin.InitializeResponse, error)
- func (p *Planetscale) NewUser(ctx context.Context, req dbplugin.NewUserRequest) (dbplugin.NewUserResponse, error)
- func (p *Planetscale) Type() (string, error)
- func (p *Planetscale) UpdateUser(ctx context.Context, req dbplugin.UpdateUserRequest) (dbplugin.UpdateUserResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectionParameters ¶
type Planetscale ¶
type Planetscale struct {
// contains filtered or unexported fields
}
func (Planetscale) Close ¶
func (c Planetscale) Close() error
Close terminates the database connection.
func (Planetscale) Connection ¶
func (c Planetscale) Connection(ctx context.Context) (*planetscale.Client, error)
Connection creates or returns an existing a database connection. If the session fails on a ping check, the session will be closed and then re-created. This method does locks the mutex on its own.
func (*Planetscale) DeleteUser ¶
func (p *Planetscale) DeleteUser(ctx context.Context, req dbplugin.DeleteUserRequest) (dbplugin.DeleteUserResponse, error)
func (*Planetscale) Initialize ¶
func (p *Planetscale) Initialize(ctx context.Context, req dbplugin.InitializeRequest) (dbplugin.InitializeResponse, error)
func (*Planetscale) NewUser ¶
func (p *Planetscale) NewUser(ctx context.Context, req dbplugin.NewUserRequest) (dbplugin.NewUserResponse, error)
func (*Planetscale) Type ¶
func (p *Planetscale) Type() (string, error)
func (*Planetscale) UpdateUser ¶
func (p *Planetscale) UpdateUser(ctx context.Context, req dbplugin.UpdateUserRequest) (dbplugin.UpdateUserResponse, error)
Click to show internal directories.
Click to hide internal directories.