hi get current database name (current environment); get list of columns for full information like `comment`: \DB::query("SHOW FULL COLUMNS FROM ".$table)->as_object()->execute();
1. It's not readily available, you need to retrieve it from the DB config.
And you might need to parse it, since different types use different fields. For example "mysqli" uses a "database" field, but PDO uses a "dsn" that contains the database name.
It returns an array with all information about every table column, including comments if present.
A Database instance also holds it's own config, but it is not exposed so you can't get to it. If you want to take that route, you need to overload the class and add a method to access the _config property.