Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
utilisateurs:grigouille:brouillons:unixodbc [Le 09/06/2019, 16:11] grigouille [SQLite3] |
utilisateurs:grigouille:brouillons:unixodbc [Le 09/06/2019, 16:43] (Version actuelle) grigouille |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
---- | ---- | ||
- | {{ :applications:icone_de_l'application.png?80}} | + | {{http://www.unixodbc.org/unixodbc-logo-small2.png}} |
====== unixODBC ====== | ====== unixODBC ====== | ||
Ligne 42: | Ligne 42: | ||
$ | $ | ||
</code> | </code> | ||
+ | |||
+ | Vérification <code bash> | ||
+ | $ odbcinst -q -d | grep SQLite | ||
+ | [SQLite] | ||
+ | [SQLite3] | ||
+ | $ | ||
+ | </code> | ||
+ | |||
+ | Pour tester, il faut configurer le fichier odbc.ini : | ||
+ | <code bash> | ||
+ | $ cat ~/.odbc.ini | ||
+ | [test] | ||
+ | Driver=SQLite3 | ||
+ | Database=/home/user/test.db | ||
+ | </code> | ||
+ | Remplacer Database par le chemin vers votre base SQLite3 (ou un fichier vide). | ||
+ | |||
+ | Tester : | ||
+ | <code> | ||
+ | $ isql test | ||
+ | +---------------------------------------+ | ||
+ | | Connected! | | ||
+ | | | | ||
+ | | sql-statement | | ||
+ | | help [tablename] | | ||
+ | | quit | | ||
+ | | | | ||
+ | +---------------------------------------+ | ||
+ | SQL> create table aTable(id int); | ||
+ | SQLRowCount returns 0 | ||
+ | SQL> insert into aTable values(10); | ||
+ | SQLRowCount returns 1 | ||
+ | SQL> select * from aTable; | ||
+ | +-----------+ | ||
+ | | id | | ||
+ | +-----------+ | ||
+ | | 10 | | ||
+ | +-----------+ | ||
+ | SQLRowCount returns 0 | ||
+ | 1 rows fetched | ||
+ | SQL> | ||
+ | </code> | ||
+ | |||
+ | |||
- | Tout d'abord, [[:tutoriel:comment_modifier_un_fichier|ouvrez le fichier]] **/truc/machin/bidule** en modification puis … | + | |
- | + | ||
- | ===== Utilisation ===== | + | |
- | + | ||
- | Lancez l'application comme indiqué [[:tutoriel:comment_lancer_application|ici]] ou via le [[:terminal]] (toutes [[:versions]] ou [[:variantes]] d'Ubuntu) avec la [[:commande_shell|commande]] suivante : <code>machin-chose</code> | + | |
- | + | ||
===== Désinstallation ===== | ===== Désinstallation ===== | ||
Ligne 56: | Ligne 95: | ||
* **(en)** [[http://www.unixodbc.org/|unixODBC]] | * **(en)** [[http://www.unixodbc.org/|unixODBC]] | ||
- | * **(fr)** [[Site de la communauté francophone du logiciel Bidule]] | + | |
- | * [[http://forum.ubuntu-fr.org/viewtopic.php?id=64840|Discussion « J'ai un soucis avec le logiciel Bidule »]] sur le forum Ubuntu-fr | + | |
---- | ---- | ||
- | //Contributeurs principaux : [[utilisateurs:votre_identifiant|votre nom ou pseudonyme]], [[utilisateurs:autre_identifiant|nom ou pseudo autre]].// | + | //Contributeurs principaux : [[utilisateurs:grigouille|grigouille]].// |
- | //Basé sur [[http://www.document_source.com|« Titre original de l'article »]] par Auteur Original.// | + | //Basé sur [[https://blog.sleeplessbeastie.eu/2017/07/31/how-to-configure-unixodbc/|How to configure unixODBC]] par MILOSZ GALAZKA.// |