But it seems (:dot 'scheme-name 'table-name) format is supported only in queries? How can I select an schema in database?
The table-name has to be a string, and is not evaluated. You could just do (:table-name "schema_name.table_name"). Or use #.(sql (:dot 'foo 'bar)).