Skip to content

Commit 4d256db

Browse files
committed
README*.md update
1 parent 9bbf538 commit 4d256db

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,16 @@ ___
134134
## How does it work:
135135

136136
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).
138138

139139
Its operation is quite basic, namely:
140140

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 file the [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**.
147147

148148
___
149149

@@ -209,13 +209,13 @@ ___
209209

210210
### What has been done for version 0.0.5:
211211

212-
- Writing a [DocumentHandler][35] to allow:
212+
- Writing a [DocumentHandler][36] to allow:
213213
- The extraction of the database files contained in the **odb** file on connection.
214214
- Saving database files to **odb** file when closing it.
215215

216216
- Rewrote [Driver.py][40] to allow:
217217
- 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.
219219

220220
- Many other fix...
221221

@@ -298,10 +298,10 @@ ___
298298
[32]: <https://repo1.maven.org/maven2/org/hsqldb/hsqldb/2.5.0/hsqldb-2.5.0.jar>
299299
[33]: <https://repo1.maven.org/maven2/org/hsqldb/hsqldb/2.7.2/hsqldb-2.7.2.jar>
300300
[34]: <https://www.openoffice.org/api/docs/common/ref/com/sun/star/sdbc/Driver.html>
301-
[35]: <https://github.com/prrvchr/HyperSQLOOo/blob/master/uno/lib/uno/embedded/documenthandler.py>
302-
[36]: <https://www.openoffice.org/api/docs/common/ref/com/sun/star/util/XCloseListener.html>
303-
[37]: <http://www.openoffice.org/api/docs/common/ref/com/sun/star/document/XStorageChangeListener.html>
304-
[38]: <https://www.openoffice.org/api/docs/common/ref/com/sun/star/sdbc/XConnection.html>
301+
[35]: <https://www.openoffice.org/api/docs/common/ref/com/sun/star/sdbc/XConnection.html>
302+
[36]: <https://github.com/prrvchr/HyperSQLOOo/blob/master/uno/lib/uno/embedded/documenthandler.py>
303+
[37]: <https://www.openoffice.org/api/docs/common/ref/com/sun/star/util/XCloseListener.html>
304+
[38]: <http://www.openoffice.org/api/docs/common/ref/com/sun/star/document/XStorageChangeListener.html>
305305
[39]: <https://forum.openoffice.org/en/forum/viewtopic.php?f=13&t=103912>
306306
[40]: <https://github.com/prrvchr/HyperSQLOOo/blob/master/uno/lib/uno/embedded/driver.py>
307307
[41]: <https://bugs.documentfoundation.org/show_bug.cgi?id=156511>

README_fr.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,16 @@ ___
134134
## Comment ça marche:
135135

136136
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é).
138138

139139
Son fonctionnement est assez basique, à savoir:
140140

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**.
147147

148148
___
149149

@@ -209,13 +209,13 @@ ___
209209

210210
### Ce qui a été fait pour la version 0.0.5:
211211

212-
- Ecriture d'un [DocumentHandler][35] responsable:
212+
- Ecriture d'un [DocumentHandler][36] responsable:
213213
- De l'extraction des fichiers de base de données contenus dans le fichier **odb** à la connexion.
214214
- De la sauvegarde des fichiers de base de données dans le fichier **odb** lors de sa fermeture.
215215

216216
- Réécriture de [Driver.py][40] afin de permettre:
217217
- 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.
219219

220220
- Beaucoup d'autres correctifs...
221221

@@ -298,10 +298,10 @@ ___
298298
[32]: <https://repo1.maven.org/maven2/org/hsqldb/hsqldb/2.5.0/hsqldb-2.5.0.jar>
299299
[33]: <https://repo1.maven.org/maven2/org/hsqldb/hsqldb/2.7.2/hsqldb-2.7.2.jar>
300300
[34]: <https://www.openoffice.org/api/docs/common/ref/com/sun/star/sdbc/Driver.html>
301-
[35]: <https://github.com/prrvchr/HyperSQLOOo/blob/master/uno/lib/uno/embedded/documenthandler.py>
302-
[36]: <https://www.openoffice.org/api/docs/common/ref/com/sun/star/util/XCloseListener.html>
303-
[37]: <http://www.openoffice.org/api/docs/common/ref/com/sun/star/document/XStorageChangeListener.html>
304-
[38]: <https://www.openoffice.org/api/docs/common/ref/com/sun/star/sdbc/XConnection.html>
301+
[35]: <https://www.openoffice.org/api/docs/common/ref/com/sun/star/sdbc/XConnection.html>
302+
[36]: <https://github.com/prrvchr/HyperSQLOOo/blob/master/uno/lib/uno/embedded/documenthandler.py>
303+
[37]: <https://www.openoffice.org/api/docs/common/ref/com/sun/star/util/XCloseListener.html>
304+
[38]: <http://www.openoffice.org/api/docs/common/ref/com/sun/star/document/XStorageChangeListener.html>
305305
[39]: <https://forum.openoffice.org/en/forum/viewtopic.php?f=13&t=103912>
306306
[40]: <https://github.com/prrvchr/HyperSQLOOo/blob/master/uno/lib/uno/embedded/driver.py>
307307
[41]: <https://bugs.documentfoundation.org/show_bug.cgi?id=156511>

0 commit comments

Comments
 (0)