示例#1
0
// 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)
}
示例#2
0
// AddEventLogToMetadataSchema adds the event log table to the supplied
// MetadataSchema.
func AddEventLogToMetadataSchema(schema *sqlbase.MetadataSchema) {
	schema.AddTable(keys.EventLogTableID, eventTableSchema)
}
示例#3
0
// 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})
}
示例#4
0
// AddEventLogToMetadataSchema adds the range event log table to the supplied
// MetadataSchema.
func AddEventLogToMetadataSchema(schema *sqlbase.MetadataSchema) {
	schema.AddTable(keys.RangeEventTableID, storage.RangeEventTableSchema)
}