예제 #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
파일: node.go 프로젝트: GitGoldie/cockroach
// 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
파일: node.go 프로젝트: CubeLite/cockroach
// AddEventLogToMetadataSchema adds the range event log table to the supplied
// MetadataSchema.
func AddEventLogToMetadataSchema(schema *sqlbase.MetadataSchema) {
	schema.AddTable(keys.RangeEventTableID, storage.RangeEventTableSchema)
}