Bläddra i källkod

ajout du readme, de la licenece, et de métadonnées dans el cargo toml

Hvrnbi 5 månader sedan
förälder
incheckning
95f8f984d0
3 ändrade filer med 85 tillägg och 0 borttagningar
  1. 8 0
      Cargo.toml
  2. 21 0
      LICENSE
  3. 56 0
      README

+ 8 - 0
Cargo.toml

@@ -2,6 +2,14 @@
 name = "sql-generustor"
 version = "0.1.0"
 edition = "2024"
+authors = ["Harupi <hvrupi@proton.me>"]
+license = "MIT"
+description = "A tool to generate SQL insertion commands"
+readme = "README"
+homepage = "https://github.com/Hvrnbi/sql-generustor"
+repository = "https://github.com/Hvrnbi/sql-generustor"
+keywords = ["cli", "sql", "generation", "insert", "insertion"]
+categories = ["command-line-utilities"]
 
 [dependencies]
 clap = { version = "4.6.1", features = ["derive"] }

+ 21 - 0
LICENSE

@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 Harupi
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

+ 56 - 0
README

@@ -0,0 +1,56 @@
+# 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 :
+
+```cargo install sql-generustor```
+
+### 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');
+```
+
+