Skip to content

Commit

Permalink
Third attempt to finish exposing all of interface (uber#5050)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidporter-id-au authored Dec 15, 2022
1 parent a6b4aa9 commit 2d4ad08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/cassandra/cqlclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type (
ExecDDLQuery(stmt string, args ...interface{}) error
Close()
ListTables() ([]string, error)
listTypes() ([]string, error)
ListTypes() ([]string, error)
DropTable(name string) error
DropType(name string) error
DropAllTablesTypes() error
Expand Down Expand Up @@ -228,8 +228,8 @@ func (client *CqlClientImpl) ListTables() ([]string, error) {
return names, nil
}

// listTypes lists the User defined types in a Keyspace
func (client *CqlClientImpl) listTypes() ([]string, error) {
// ListTypes lists the User defined types in a Keyspace.
func (client *CqlClientImpl) ListTypes() ([]string, error) {
qry := client.session.Query(listTypesCQL, client.cfg.Keyspace)
iter := qry.Iter()
var names []string
Expand Down Expand Up @@ -268,7 +268,7 @@ func (client *CqlClientImpl) DropAllTablesTypes() error {
}
}

types, err := client.listTypes()
types, err := client.ListTypes()
if err != nil {
return err
}
Expand Down

0 comments on commit 2d4ad08

Please sign in to comment.