You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,16 +134,16 @@ ___
134
134
## How does it work:
135
135
136
136
HyperSQLOOo is an [com.sun.star.sdbc.Driver][34] UNO service written in Python.
137
-
It is an overlay to the [jdbcDriverOOo][10] extension allowing to store the HyperSQL database in an odb file (which is, in fact, a compressed file).
137
+
It is an overlay to the [jdbcDriverOOo][10] extension allowing to store the HsqlDB database in an odb file (which is, in fact, a compressed file).
138
138
139
139
Its operation is quite basic, namely:
140
140
141
-
- When requesting a connection, three things are done:
142
-
1.If it does not already exist, a **subdirectory** with name: `.` + `odb_file_name` + `.lck` is created in the location of the odb file where all HyperSQL files are extracted from the **database** directory of the odb file (unzip).
143
-
2. A [DocumentHandler][35]is added as an [com.sun.star.util.XCloseListener][36] and [com.sun.star.document.XStorageChangeListener][37] to the odb file.
144
-
3. The [jdbcDriverOOo][10] extension is used to get the [com.sun.star.sdbc.XConnection][38]interface from the **subdirectory** path + `odb_file_name`.
145
-
146
-
- When closing or renaming (Save as) an odb filethe [DocumentHandler][35] copy all the files present in the **subdirectory** into the (new) **database** directory of the odb file (zip) and then delete the **subdirectory**.
141
+
- When requesting a connection, several things are done:
142
+
-If it does not already exist, a **subdirectory** with name: `.` + `odb_file_name` + `.lck` is created in the location of the odb file where all HsqlDB files are extracted from the **database** directory of the odb file (unzip).
143
+
- The [jdbcDriverOOo][10] extension is used to get the [com.sun.star.sdbc.XConnection][35] interface from the **subdirectory** path + `hsqldb`.
144
+
- If the connection is successful, a [DocumentHandler][36]is added as an [com.sun.star.util.XCloseListener][37] and [com.sun.star.document.XStorageChangeListener][38]to the odb file.
145
+
- If the connection is unsuccessful and the files was extracted in phase 1, the **subdirectory** will be deleted.
146
+
- When closing or renaming (Save As) the odb file, if the connection was successful, the [DocumentHandler][36] copies all files present in the **subdirectory** into the (new) **database** directory of the odb file (zip), then delete the **subdirectory**.
147
147
148
148
___
149
149
@@ -209,13 +209,13 @@ ___
209
209
210
210
### What has been done for version 0.0.5:
211
211
212
-
- Writing a [DocumentHandler][35] to allow:
212
+
- Writing a [DocumentHandler][36] to allow:
213
213
- The extraction of the database files contained in the **odb** file on connection.
214
214
- Saving database files to **odb** file when closing it.
215
215
216
216
- Rewrote [Driver.py][40] to allow:
217
217
- Its operation with the new JDBC driver provided by the extension [jdbcDriverOOo][10] version 0.0.4.
218
-
- The support for the new [DocumentHandler][35] to make **odb** files portable as they were in LibreOffice / OpenOffice with version 1.8 of HsqlDB.
218
+
- The support for the new [DocumentHandler][36] to make **odb** files portable as they were in LibreOffice / OpenOffice with version 1.8 of HsqlDB.
Copy file name to clipboardExpand all lines: README_fr.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,16 +134,16 @@ ___
134
134
## Comment ça marche:
135
135
136
136
HyperSQLOOo est un service [com.sun.star.sdbc.Driver][34] UNO écrit en Python.
137
-
Il s'agit d'une surcouche à l'extension [jdbcDriverOOo][10] permettant de stocker la base de données HyperSQL dans un fichier odb (qui est, en fait, un fichier compressé).
137
+
Il s'agit d'une surcouche à l'extension [jdbcDriverOOo][10] permettant de stocker la base de données HsqlDB dans un fichier odb (qui est, en fait, un fichier compressé).
138
138
139
139
Son fonctionnement est assez basique, à savoir:
140
140
141
-
- Lors d'une demande de connexion, trois choses sont faites:
142
-
1.S'il n'existe pas déjà, un **sous-répertoire** avec le nom: `.` + `nom_du_fichier_odb` + `.lck` est créé à l'emplacement du fichier odb dans lequel tous les fichiers HyperSQL sont extraits du répertoire **database** du fichier odb (décompression).
143
-
2. Un [DocumentHandler][35] est ajouté en tant que[com.sun.star.util.XCloseListener][36] et [com.sun.star.document.XStorageChangeListener][37] au fichier odb.
144
-
3. L'extension [jdbcDriverOOo][10] est utilisée pour obtenir l'interface[com.sun.star.sdbc.XConnection][38] à partir du chemin du **sous-répertoire** + `nom_du_fichier_odb`.
145
-
146
-
- Lors de la fermeture ou du renommage (Enregistrer sous) d'un fichier odb, le [DocumentHandler][35] copie tous les fichiers présents dans le **sous-répertoire** dans le (nouveau) répertoire **database** du fichier odb (compression) puis supprime le **sous-répertoire**.
141
+
- Lors d'une demande de connexion, plusieurs choses sont faites:
142
+
-S'il n'existe pas déjà, un **sous-répertoire** avec le nom: `.` + `nom_du_fichier_odb` + `.lck` est créé à l'emplacement du fichier odb dans lequel tous les fichiers HsqlDB sont extraits du répertoire **database** du fichier odb (décompression).
143
+
- L'extension [jdbcDriverOOo][10] est utilisée pour obtenir l'interface[com.sun.star.sdbc.XConnection][35] à partir du chemin du **sous-répertoire** + `hsqldb`.
144
+
- Si la connexion réussi, un [DocumentHandler][36] est ajouté en tant que[com.sun.star.util.XCloseListener][37] et [com.sun.star.document.XStorageChangeListener][38] au fichier odb.
145
+
- Si la connexion échoue et que les fichiers ont été extraits lors de la phase 1, le **sous-répertoire** est supprimé.
146
+
- Lors de la fermeture ou du changement de nom (Enregistrer sous) du fichier odb, si la connexion a réussi, le [DocumentHandler][36] copie tous les fichiers présents dans le **sous-répertoire** dans le (nouveau) répertoire **database** du fichier odb (zip), puis supprime le **sous-répertoire**.
147
147
148
148
___
149
149
@@ -209,13 +209,13 @@ ___
209
209
210
210
### Ce qui a été fait pour la version 0.0.5:
211
211
212
-
- Ecriture d'un [DocumentHandler][35] responsable:
212
+
- Ecriture d'un [DocumentHandler][36] responsable:
213
213
- De l'extraction des fichiers de base de données contenus dans le fichier **odb** à la connexion.
214
214
- De la sauvegarde des fichiers de base de données dans le fichier **odb** lors de sa fermeture.
215
215
216
216
- Réécriture de [Driver.py][40] afin de permettre:
217
217
- Son fonctionnement avec le nouveau pilote JDBC fourni par l'extension [jdbcDriverOOo][10] version 0.0.4.
218
-
- La prise en charge du nouveau [DocumentHandler][35] afin de rendre les fichiers **odb** portables tels qu'ils étaient dans LibreOffice / OpenOffice avec la version 1.8 de HsqlDB.
218
+
- La prise en charge du nouveau [DocumentHandler][36] afin de rendre les fichiers **odb** portables tels qu'ils étaient dans LibreOffice / OpenOffice avec la version 1.8 de HsqlDB.
0 commit comments