This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ecrire les requêtes qui permettent d afficher | |
# Le prénom, nom et âge des personnages | |
SELECT firstname, lastname, age FROM person; | |
+-------------+---------------+-----+ | |
| firstname | lastname | age | | |
+-------------+---------------+-----+ | |
| Arthur | Pendragon | 35 | | |
| Guenièvre | NULL | 30 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const app = express(); | |
const port = 3000; | |
app.get("/supermiddleware", middleware, (req, res) => { | |
res.send("Hello World !"); | |
}); | |
function middleware(req, res, next) { | |
console.log("Hello middleware"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const router = express.Router(); | |
const db = require("../mysql"); | |
router.get("/", (req, res) => { | |
db.query("SELECT id, email, name FROM user", (err, results) => { | |
if (err) { | |
res.status(500).json({ | |
error: err.message, | |
sql: err.sql, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE author | |
( | |
id INTEGER NOT NULL | |
AUTO_INCREMENT PRIMARY KEY, | |
nom VARCHAR | |
(50) NOT NULL | |
); | |
CREATE TABLE `post` | |
( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { SimpleEndCustomer, TrackerLogs } from 'redux/types'; | |
import moment from 'moment'; | |
import { colorUsage } from 'stylesheet'; | |
import { InjectedIntl } from 'react-intl'; | |
interface DataItem { | |
y: number; | |
x?: any; | |
z?: any; | |
label?: string; |
OlderNewer