martinjw/dbschemareader

[Suggestion] Add a ViewExists method

iulian0512 opened this issue · 3 comments

[Suggestion] Add a ViewExists method

How would this be different to schemaReader.Views.Any(v => v.Name == "X")` ?

your example loads all the views in app memory then loops all until a match is found, whereas viewexists could be a query sent to the db 'select * from info_schema where view_name='myview''

reader.ViewExists(name) released in 2.7.12