cassandraschema

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 2 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 GetSession

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

Types

type CassandraColumn

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

func GetColumns

func GetColumns(hosts string, username string, password string) []CassandraColumn

type CassandraKeyspace

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

func GetKeyspaces

func GetKeyspaces(hosts string, username string, password string) []CassandraKeyspace

type CassandraTable

type CassandraTable struct {
	Id           gocql.UUID
	Name         string
	KeyspaceName string
}

func GetTables

func GetTables(hosts string, username string, password string) []CassandraTable

Jump to

Keyboard shortcuts

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