D1 can't connect via the MySQL protocol at all, so the second part wouldn't really be a consideratio
D1 can't connect via the MySQL protocol at all, so the second part wouldn't really be a consideration - you'd need to just adapt the commands to be proper SQLite queries before sending to D1.
