tengu-alt commented on code in PR #1794:
URL:
https://github.com/apache/cassandra-gocql-driver/pull/1794#discussion_r1713589130
##########
metadata.go:
##########
@@ -760,6 +879,37 @@ func getTableMetadata(session *Session, keyspaceName
string) ([]TableMetadata, e
return tables, nil
}
+// query for only the table metadata in the specified keyspace from
system_virtual_schema.tables
+func getVirtualTableMetadata(s *Session, keyspaceName string)
([]VirtualTableMetadata, error) {
+ const stmt = `
+ SELECT
+ table_name,
+ comment
+ FROM system_virtual_schema.tables
+ WHERE keyspace_name = ?`
Review Comment:
agree, fixed
##########
metadata.go:
##########
@@ -947,6 +1097,52 @@ func getColumnMetadata(session *Session, keyspaceName
string) ([]ColumnMetadata,
return columns, nil
}
+// query for only the column metadata in the specified keyspace from
system_virtual_schema.columns
+func getVirtualColumnMetadata(s *Session, keyspaceName string)
([]VirtualColumnMetadata, error) {
+ const stmt = `
+ SELECT
+ table_name,
+ column_name,
+ clustering_order,
+ kind,
+ type
+ FROM system_virtual_schema.columns
+ WHERE keyspace_name = ?`
Review Comment:
fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]