I have an example of the following prepared statement code in MSSQL below:
const db = require('../database.js');
module.exports = {
getUserName: async name => db(async pool =>
await pool.request()
.input('name', dataTypes.VarChar, name)
.query(`SELECT * FROM person WHERE name = @name;`))
};
I have been looking at MariaDB docs and online resources but couldn't find the right docs and figure out. Is it possible to create prepared statement in MariaDB? Or Any equivalent to MariaDB?