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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more