Outils pour utilisateurs

Outils du site


python:firebird:legacy

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
python:firebird:legacy [2022/09/05 07:23]
marclebrun [Installation du client Firebird]
python:firebird:legacy [2023/10/06 08:44] (Version actuelle)
marclebrun
Ligne 1: Ligne 1:
-====== Firebird 2.5 (Legacy======+====== Firebird 2.5 Legacy ​"​fdb" ​======
  
 ^ Version à utiliser si le serveur Firebird est 2.5 ^ ^ Version à utiliser si le serveur Firebird est 2.5 ^
  
   * [[https://​fdb.readthedocs.io/​en/​v2.0/​|FDB - The Python driver for Firebird]]   * [[https://​fdb.readthedocs.io/​en/​v2.0/​|FDB - The Python driver for Firebird]]
 +  * [[https://​fdb.readthedocs.io/​en/​latest/​usage-guide.html|Usage guide]] :-)
  
 ===== Installation du client Firebird ===== ===== Installation du client Firebird =====
Ligne 38: Ligne 39:
  
 con = fdb.connect( con = fdb.connect(
-    dsn='​localhost:​c:​\\databases\\facturation.fdb',​ +    dsn      = '​localhost:​c:​\\databases\\facturation.fdb',​ 
-    user='​sysdba',​ +    user     ​= '​sysdba',​ 
-    password='​masterkey',​ +    password = '​masterkey',​ 
-    charset='​UTF8' ​         # specify a character set for the connection+    charset ​ = '​UTF8' ​         # specify a character set for the connection 
 +
 +</​code>​ 
 + 
 +En spécifiant le chemin vers **fbclient.dll** : 
 + 
 +<code python>​ 
 +import sys, fdb 
 + 
 +con = fdb.connect( 
 +    dsn             = '​localhost:​c:​\\databases\\facturation.fdb',​ 
 +    user            = '​sysdba',​ 
 +    password ​       = '​masterkey',​ 
 +    charset ​        = '​UTF8', ​        # specify a character set for the connection 
 +    fb_library_name = sys.path[0] + '​\\fbclient.dll'​
 ) )
 </​code>​ </​code>​
python/firebird/legacy.1662362636.txt.gz · Dernière modification: 2022/09/05 07:23 par marclebrun