// AddEventLogToMetadataSchema adds the range event log table to the supplied // MetadataSchema. func AddEventLogToMetadataSchema(schema *sqlbase.MetadataSchema) { desc := sql.CreateTableDescriptor( keys.RangeEventTableID, keys.SystemDatabaseID, storage.RangeEventTableSchema, sqlbase.NewDefaultPrivilegeDescriptor(), ) schema.AddDescriptor(keys.SystemDatabaseID, &desc) }
// AddEventLogToMetadataSchema adds the event log table to the supplied // MetadataSchema. func AddEventLogToMetadataSchema(schema *sqlbase.MetadataSchema) { schema.AddTable(keys.EventLogTableID, eventTableSchema) }
// AddEventLogToMetadataSchema adds the range event log table to the supplied // MetadataSchema. func AddEventLogToMetadataSchema(schema *sqlbase.MetadataSchema) { schema.AddTable(keys.RangeEventTableID, storage.RangeEventTableSchema, privilege.List{privilege.ALL}) }
// AddEventLogToMetadataSchema adds the range event log table to the supplied // MetadataSchema. func AddEventLogToMetadataSchema(schema *sqlbase.MetadataSchema) { schema.AddTable(keys.RangeEventTableID, storage.RangeEventTableSchema) }