cassandra

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*gocql.Session
}

func (*Client) CheckDbReadWrite

func (c *Client) CheckDbReadWrite() error

func (*Client) CloseCassandraClient

func (c *Client) CloseCassandraClient()

func (*Client) CreateKeyspace

func (c *Client) CreateKeyspace() error

CreateKeyspace creates a keyspace

func (*Client) CreateTable

func (c *Client) CreateTable() error

CreateTable creates a table

func (*Client) PingCassandra

func (c *Client) PingCassandra() error

func (*Client) QueryData added in v0.4.0

func (c *Client) QueryData(name string) error

queries a Data by ID

func (*Client) UpdateData added in v0.4.0

func (c *Client) UpdateData(name string, product string) error

UpdateData updates a record in the table

type KubeDBClientBuilder

type KubeDBClientBuilder struct {
	// contains filtered or unexported fields
}

func NewKubeDBClientBuilder

func NewKubeDBClientBuilder(kc client.Client, db *api.Cassandra) *KubeDBClientBuilder

func (*KubeDBClientBuilder) GetCassandraClient

func (o *KubeDBClientBuilder) GetCassandraClient() (*Client, error)

func (*KubeDBClientBuilder) WithContext

func (*KubeDBClientBuilder) WithPort

func (o *KubeDBClientBuilder) WithPort(port *int) *KubeDBClientBuilder

func (*KubeDBClientBuilder) WithURL

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL