Documentation ¶
Index ¶
- type Row
- type Session
- func (s *Session) Close()
- func (s *Session) GetColumns(keyspace, table, needType string) ([]string, error)
- func (s *Session) GetKeyspaces(ctx context.Context) ([]string, error)
- func (s *Session) GetTables(keyspace string) ([]string, error)
- func (s *Session) Ping(ctx context.Context) error
- func (s *Session) Select(ctx context.Context, query string, values ...interface{}) (rows map[string][]Row, err error)
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session is a convenience wrapper for the gocql.Session.
func (*Session) GetColumns ¶
GetColumns queries the cassandra cluster for a list of an existing columns of a given type for a given keyspace, table.
func (*Session) GetKeyspaces ¶
GetKeyspaces queries the cassandra cluster for a list of existing keyspaces.
func (*Session) GetTables ¶
GetTables queries the cassandra cluster for a list of an existing tables in a given keyspace.
func (*Session) Select ¶
func (s *Session) Select(ctx context.Context, query string, values ...interface{}) (rows map[string][]Row, err error)
Select queries the database with provided query string and returns result rows grouped by ID. ID must be a first requested column in query and must be convertable to a string.
Click to show internal directories.
Click to hide internal directories.