@onfire-network/onset-typescript-mariadb
v1.0.3
Published
Onset MariaDB definitions and api
Downloads
4
Readme
OnsetTypescriptMariaDB
Onset MariaDB definitions and api in typescript
Installation
npm install @onfire-network/onset-typescript-mariadb --save
Example
let conn = new MariaDB.Connection("localhost", "myuser", "changeme123", "mydatabase");
conn.query("SELECT * FROM players;", result => {
while(result.next()){
Server.broadcast(result.getString("username"));
}
});
conn.close();