cassandraschema

package module
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

Cassandra Schema Library

This is a single purpose library that will provide the schema information for an Apache Cassandra database.


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains added in v1.0.4

func Contains(a []string, x string) bool

func GetSession

func GetSession(hosts string, username string, password string) *gocql.Session

Types

type AuthDetails added in v1.0.4

type AuthDetails struct {
	Hosts    string
	Username string
	Password string
}

type CassandraCluster added in v1.0.4

type CassandraCluster struct {
	Keyspaces []CassandraKeyspace
}

func BuildClusterSchema added in v1.0.4

func BuildClusterSchema(details AuthDetails, ignoreList []string) CassandraCluster

type CassandraColumn

type CassandraColumn struct {
	Name         string
	DataType     string
	Kind         string
	ClusterOrder string
	Position     string
	Keyspace     string
	Table        string
}

func GetColumns

func GetColumns(details AuthDetails) []CassandraColumn

type CassandraKeyspace

type CassandraKeyspace struct {
	Name            string
	DurableWrites   bool
	Replication     map[string]string
	CassandraTables []CassandraTable
}

func GetKeyspaces

func GetKeyspaces(details AuthDetails) []CassandraKeyspace

type CassandraTable

type CassandraTable struct {
	Id               gocql.UUID
	Name             string
	KeyspaceName     string
	CassandraColumns []CassandraColumn
}

func GetTables

func GetTables(details AuthDetails) []CassandraTable

Jump to

Keyboard shortcuts

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