To use need to download executable file pgorm to directory from PATH environment variable.
The program is free, source code is open, allow to make own builds and include them in third-party projects with a link to this product.
As possible, free support and consultations are provided, more details on page Contacts
For advanced users, there is complete tar-archive with source code, executables, and example.
For batch use, installation is carried out in command line:
1. Utility wget download the executable file to directory /usr/bin
wget --directory-prefix=/usr/bin http://pgorm.org/files/download/pgorm
2. Command chmod set right permissions to execute
chmod a+x /usr/bin/pgorm
Installation example
[root@vds2157681 ~]# wget --directory-prefix=/usr/bin https://pgorm.org/files/download/pgorm --2023-03-23 12:01:00-- https://pgorm.org/files/download/pgorm Resolving pgorm.org (pgorm.org)... 194.67.205.60 Connecting to pgorm.org (pgorm.org)|194.67.205.60|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 175784 (172K) [application/octet-stream] Saving to: ‘/usr/bin/pgorm’ 100%[===================================================================================================================>] 175,784 --.-K/s in 0.002s 2023-03-23 12:01:00 (75.1 MB/s) - ‘/usr/bin/pgorm’ saved [175784/175784] [root@vds2157681 ~]# chmod a+x /usr/bin/pgorm
To create service in linux operating system, can use script service-create.sh:
1. Download it and run it with pgorm parameters
curl -s https://pgorm.org/files/download/service-create.sh | bash -s - -d [database]
2. Start service, check its status
systemctl start pgorm
systemctl status pgorm
Example
[root@pgsuite ~]# curl -s https://pgorm.org/files/download/service-create.sh | bash -s - -d pgsuite -hp 8080 pgorm service has been successfully created, use "systemctl start pgorm" to start [root@pgsuite ~]# [root@pgsuite ~]# systemctl start pgorm [root@pgsuite ~]# systemctl status pgorm ● pgorm.service - PGORM (web server for database PostgreSQL) Loaded: loaded (/etc/systemd/system/pgorm.service; disabled; vendor preset: disabled) Active: active (running) since Wed 2024-01-10 18:45:03 MSK; 10s ago Main PID: 23144 (pgorm) CGroup: /system.slice/pgorm.service └─23144 /usr/bin/pgorm execute -d pgsuite -hp 8080 Jan 10 18:45:03 pgsuite.org pgorm[23144]: 2024-01-10 18:45:03.593 INFO ADMIN thread "ADMIN" started Jan 10 18:45:03 pgsuite.org pgorm[23144]: 2024-01-10 18:45:03.593 INFO ADMIN listening socket bound to 127.0.0.1:1080 Jan 10 18:45:03 pgsuite.org pgorm[23144]: 2024-01-10 18:45:03.594 INFO HTTP_SERVER thread "HTTP_SERVER" started Jan 10 18:45:03 pgsuite.org pgorm[23144]: 2024-01-10 18:45:03.594 INFO HTTP_SERVER listening socket created Jan 10 18:45:03 pgsuite.org pgorm[23144]: 2024-01-10 18:45:03.594 INFO HTTP_SERVER listening socket bound to port 8080 Jan 10 18:45:03 pgsuite.org pgorm[23144]: 2024-01-10 18:45:03.594 INFO HTTP_SERVER incoming connections are listening Jan 10 18:45:03 pgsuite.org pgorm[23144]: 2024-01-10 18:45:03.599 INFO ORM_MAKER connected, pid: 23149, user: postgres, client_encoding: UTF8, server ...on: 140002 Jan 10 18:45:03 pgsuite.org pgorm[23144]: 2024-01-10 18:45:03.625 INFO ORM_MAKER schema "pgorm" verified Jan 10 18:45:03 pgsuite.org pgorm[23144]: 2024-01-10 18:45:03.626 INFO ORM_MAKER obsolete directory "/site/orm" removed Jan 10 18:45:03 pgsuite.org pgorm[23144]: 2024-01-10 18:45:03.628 INFO ORM_MAKER all modules verified Hint: Some lines were ellipsized, use -l to show in full. [root@pgsuite ~]# [root@pgsuite ~]# curl http://pgsuite.org:8080/pgorm/status PGORM is web server for database PostgreSQL version 24.1.3, linux 64 bits Parameters HTTP directory: /site port: 8080 database host: 127.0.0.1 port: 5432 database: pgsuite orm user: postgres administration port: 1080 Status info uptime: 0 00:00:33 threads: 6 [root@pgsuite ~]#
The source code is upload in GitHub repository
PGORM is released under the MIT License (open and free software license).
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.