darkain / pudl

PHP Universal Database Library - connects to and generates queries for SQL Servers
BSD 2-Clause "Simplified" License
28 stars 5 forks source link

Add $db->tables()->??? interface #30

Open darkain opened 2 years ago

darkain commented 2 years ago

$db->tables(['list','of','tables']) should return a special pudlTables class instance that has a reference to the parent pudl object, and contains a number of methods dedicated to table operations.

"optimize table" "analyze table" "drop table" "rename table" (only works if 1 table in collection?)

Can be used anywhere a $tables value is expected (possibly where a $table value too, validating we only have a single table in the collection)

This will clear up the pudl namespace a bit. We're currently having conflicts with keywords like "analize"