// NewFilteredAdapter is the constructor for FilteredAdapter.
// Casbin will not automatically call LoadPolicy() for a filtered adapter.
NewFilteredAdapter is the constructor for FilteredAdapter.
Casbin will not automatically call LoadPolicy() for a filtered adapter.
// NewFilteredAdapter is the constructor for FilteredAdapter . // Casbin will not automatically call LoadPolicy () for a filtered adapter .
func NewFilteredAdapter(url string) (persist.FilteredAdapter, error) {
	a, err := NewAdapter(url)
	if err != nil {
		return nil, err
	}
	a.(*adapter).filtered = true
	return a.(*adapter), nil
}
func NewFilteredAdapter ( url string ) ( persist . FilteredAdapter , error ) { a , err := NewAdapter ( url ) if err != nil { return nil , err } a . ( * adapter ) . filtered = true return a . ( * adapter ) , nil }
NewFilteredAdapter is the constructor for FilteredAdapter.
NewFilteredAdapter is the constructor for FilteredAdapter .