Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse user input #1

Open
qboot opened this issue Oct 23, 2017 · 0 comments
Open

Parse user input #1

qboot opened this issue Oct 23, 2017 · 0 comments
Assignees
Labels

Comments

@qboot
Copy link
Owner

qboot commented Oct 23, 2017

Scanner la saisie de l'utilisateur et décomposer la chaîne reçue pour pointer vers les bonnes fonctions (pour l'instant simplement faire un printf de la fonction attendue).

Par exemple :
Input : CREATE DATABASE base1;doit afficher createDatabase(base1);

Pour la création d'une table les colonnes de la table sont un tableau de tableau [nom de la colonne, type de la colonne] donc la fonction createTable attend un nom est un double pointeur.

CREATE DATABASE base1;
DROP DATABASE base1;
SHOW DATABASES;
USE base1;
CREATE TABLE people (id int, name string, gender, int, address string, weight float);
DROP TABLE people;
SHOW TABLES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants