Skip to content

Instantly share code, notes, and snippets.

@aminnairi
Created November 10, 2025 10:40
Show Gist options
  • Select an option

  • Save aminnairi/a356fe4c2a34b0db7ecab4d8eafed447 to your computer and use it in GitHub Desktop.

Select an option

Save aminnairi/a356fe4c2a34b0db7ecab4d8eafed447 to your computer and use it in GitHub Desktop.
package main
import (
_ "modernc.org/sqlite"
)
func main() {
// Création d'une table utilisateur avec les colonnes suivantes :
// id: clé primaire, entier
// email: 50 caractères maximum, non null, unique
// age: entier non signé, non null
// administrateur : booléen, non null
// Création d'un CRUD (Create, Read, Update, Delete)
// Créer trois utilisateurs différents
// Afficher la liste des trois utilisateur
// Modifier l'email du premier utilisateur
// Supprimer le deuxième utilisteur
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment