export default function createSelect(pool) {
	return (table, id) => new Promise((resolve, reject) => {
		pool.getConnection((err, conn) => {
			if (err) {
				return reject(err);
			}

			const query = `SELECT * FROM ${table} WHERE id = ?`;
			conn.query(query, [id], (err, result) => {
				conn.release();
				if (err) {
					return reject(err);
				}

				resolve(result);
			});
		});
	});
}

@@ -267,22 +267,21 @@
 , (err, 
-result
+%5Brow%5D
 ) =%3E %7B%0A%09
@@ -362,14 +362,18 @@
 lve(
-result
+%7B ...row %7D
 );%0A%09

return only the selected row from select