code: func NewMemDB(schema *DBSchema) (*MemDB, error) {
  	// Validate the schema
  	if err := schema.Validate(); err != nil {
  		return nil, err
  	}
  
  	// Create the MemDB
  	db := &MemDB{
  		schema:  schema,
  		root:    unsafe.Pointer(iradix.New()),
  		primary: true,
  	}
  	if err := db.initialize(); err != nil {
  		return nil, err
  	}
  
  	return db, nil
  }
docs: // NewMemDB creates a new MemDB with the given schema