A simple and lightweight command-line application written in Rust to generate SQL insertion commands.

Hvrnbi fa85aa7007 passage du readme en markdown 5 ヶ月 前
src 4084efa52b initial commit, first working version 5 ヶ月 前
.gitignore 4084efa52b initial commit, first working version 5 ヶ月 前
Cargo.lock 4084efa52b initial commit, first working version 5 ヶ月 前
Cargo.toml fa85aa7007 passage du readme en markdown 5 ヶ月 前
LICENSE 95f8f984d0 ajout du readme, de la licenece, et de métadonnées dans el cargo toml 5 ヶ月 前
README.md fa85aa7007 passage du readme en markdown 5 ヶ月 前

README.md

sql-generustor

🥖

Une application de terminal simple et légère écrite en rust pour générer des commandes d'insertion SQL.

Entièrement compatible avec SQLite, et partiellement avec MySQL.

Installation

Le moyen le plus simple d'installer cette application est d'utiliser cargo :


### Utilisation

Cette application prend 4 arguments : la table sql, les colonnes, les types des colonnes, et le nombre de lignes à générer.

Exemple d'utilisation :

$ sql-generustor gens nom,prénom,taille,mdp text,text,real,text 4 insert into gens (nom,prénom,taille,mdp) values ('Hoxha','Achille',0.14867234,'MyNameIsNobody'); insert into gens (nom,prénom,taille,mdp) values ('Haji','Frank',0.92468286,'ÊtreOuNÊtrePasTelleEstLaQuestion'); insert into gens (nom,prénom,taille,mdp) values ('Lake','Michael',0.37070015,'LesChaussettesDeLArchiduchesseSontEllesSechesArchiSeches'); insert into gens (nom,prénom,taille,mdp) values ('Meredith','Mallory',0.0016351843,'JaimeLesPates123');



## 🍵

A simple and lightweight command-line application written in Rust to generate SQL insertion commands.

Fully compatible with SQLite and partially with MySQL.

### Installation

The easiest way to install this app is using Cargo:

cargo install sql-generustor```

Usage

This application takes 4 arguments: the SQL table, the columns, their types, and the number of rows to generate.

Usage example:

$ sql-generustor people name,firstname,height,password text,text,real,text 4
insert into people (name,firstname,height,password) values ('Hoxha','Achille',0.14867234,'MyNameIsNobody');
insert into people (name,firstname,height,password) values ('Haji','Frank',0.92468286,'ÊtreOuNÊtrePasTelleEstLaQuestion');
insert into people (name,firstname,height,password) values ('Lake','Michael',0.37070015,'LesChaussettesDeLArchiduchesseSontEllesSechesArchiSeches');
insert into people (name,firstname,height,password) values ('Meredith','Mallory',0.0016351843,'JaimeLesPates123');