-- Added compile function into Sql class