seaweedfs/weed/mq/schema/schema_builder_test.go

18 lines
301 B
Go
Raw Normal View History

2024-04-19 13:27:18 +08:00
package schema
import (
"fmt"
"testing"
)
func TestSchemaBuilder(t *testing.T) {
rtb := NewRecordTypeBuilder()
rtb.AddStringField("ID").
AddLongField("CreatedAt").
AddLongField("ModifiedAt").
AddStringField("User")
recordType := rtb.Build()
fmt.Printf("RecordType: %v\n", recordType)
}