Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateDatabase(ctx context.Context, database schema.DatabaseMeta) (*schema.Database, error)
- func (c *Client) CreateRole(ctx context.Context, role schema.RoleMeta) (*schema.Role, error)
- func (c *Client) CreateSchema(ctx context.Context, meta schema.SchemaMeta) (*schema.Schema, error)
- func (c *Client) CreateTablespace(ctx context.Context, meta schema.TablespaceMeta, location string) (*schema.Tablespace, error)
- func (c *Client) DeleteConnection(ctx context.Context, pid uint64) error
- func (c *Client) DeleteDatabase(ctx context.Context, name string, opt ...Opt) error
- func (c *Client) DeleteRole(ctx context.Context, name string) error
- func (c *Client) DeleteSchema(ctx context.Context, name string, opt ...Opt) error
- func (c *Client) DeleteTablespace(ctx context.Context, name string) error
- func (c *Client) GetConnection(ctx context.Context, pid uint64) (*schema.Connection, error)
- func (c *Client) GetDatabase(ctx context.Context, name string) (*schema.Database, error)
- func (c *Client) GetObject(ctx context.Context, database, namespace, name string) (*schema.Object, error)
- func (c *Client) GetRole(ctx context.Context, name string) (*schema.Role, error)
- func (c *Client) GetSchema(ctx context.Context, name string) (*schema.Database, error)
- func (c *Client) GetTablespace(ctx context.Context, name string) (*schema.Tablespace, error)
- func (c *Client) ListConnections(ctx context.Context, opts ...Opt) (*schema.ConnectionList, error)
- func (c *Client) ListDatabases(ctx context.Context, opts ...Opt) (*schema.DatabaseList, error)
- func (c *Client) ListObjects(ctx context.Context, opts ...Opt) (*schema.ObjectList, error)
- func (c *Client) ListRoles(ctx context.Context, opts ...Opt) (*schema.RoleList, error)
- func (c *Client) ListSchemas(ctx context.Context, opts ...Opt) (*schema.SchemaList, error)
- func (c *Client) ListTablespaces(ctx context.Context, opts ...Opt) (*schema.TablespaceList, error)
- func (c *Client) UpdateDatabase(ctx context.Context, name string, meta schema.DatabaseMeta) (*schema.Database, error)
- func (c *Client) UpdateRole(ctx context.Context, name string, meta schema.RoleMeta) (*schema.Role, error)
- func (c *Client) UpdateSchema(ctx context.Context, name string, meta schema.SchemaMeta) (*schema.Schema, error)
- func (c *Client) UpdateTablespace(ctx context.Context, name string, meta schema.TablespaceMeta) (*schema.Tablespace, error)
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateDatabase ¶
func (*Client) CreateRole ¶
func (*Client) CreateSchema ¶
func (*Client) CreateTablespace ¶
func (c *Client) CreateTablespace(ctx context.Context, meta schema.TablespaceMeta, location string) (*schema.Tablespace, error)
func (*Client) DeleteConnection ¶
func (*Client) DeleteDatabase ¶
func (*Client) DeleteSchema ¶
func (*Client) DeleteTablespace ¶
func (*Client) GetConnection ¶
func (*Client) GetDatabase ¶
func (*Client) GetTablespace ¶
func (*Client) ListConnections ¶
func (*Client) ListDatabases ¶
func (*Client) ListObjects ¶
func (*Client) ListSchemas ¶
func (*Client) ListTablespaces ¶
func (*Client) UpdateDatabase ¶
func (*Client) UpdateRole ¶
func (*Client) UpdateSchema ¶
func (*Client) UpdateTablespace ¶
func (c *Client) UpdateTablespace(ctx context.Context, name string, meta schema.TablespaceMeta) (*schema.Tablespace, error)
type Opt ¶
type Opt func(*opt) error
An Option to set on the client
func WithDatabase ¶
func WithSchema ¶
Click to show internal directories.
Click to hide internal directories.