Published
Edited
May 3, 2019
Fork of Web Genomics
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
md`var mysql = require('mysql');

var con = mysql.createConnection({
<p style ="color:red">host: "localhost",</p>
<p style ="color:red"> user: "yourusername",</p>
<p style ="color:red">password: "yourpassword",</p>
<p style ="color:red">database: "mydb"</p>
});
<br/>
con.connect(function(err) {
if (err) throw err;<br/>
console.log("Connected!");<br/>
var sql = "INSERT INTO customers (name, address) VALUES ('Company Inc', 'Highway 37')";<br/>
con.query(sql, function (err, result) {
if (err) throw err;<br/>
console.log("1 record inserted");<br/>
});
});`
Insert cell
Insert cell
Insert cell
Insert cell
md` var mysql = require('mysql');

var con = mysql.createConnection({<br/>
host: "localhost",<br/>
user: "yourusername",<br/>
password: "yourpassword",<br/>
database: "mydb"<br/>
});
<br/>
con.connect(function(err) {
if (err) throw err;<br/>
console.log("Connected!");<br/>
<p style="color:red">var sql = "UPDATE customers SET address = 'Canyon 123' WHERE address = 'Valley 345'";</p>
con.query(sql, function (err, result) {
if (err) throw err;<br/>
console.log("1 record inserted");<br/>
});
});`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {plotRichard} from '@jonasalmeida/webgen'
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
fieldPlot = fieldPlotter('disease_type')
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more