pljava | PL/Java is a free add-on module that brings Java™ Stored | SQL Database library
kandi X-RAY | pljava Summary
kandi X-RAY | pljava Summary
PL/Java is a free add-on module that brings Java Stored Procedures, Triggers, and Functions to the PostgreSQL backend. More information about this project can be found in the PL/Java Wiki and on the project information site.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Execute the image
- Get connection
- Get the name of the database associated with this user
- Get the host name
- Returns the port number
pljava Key Features
pljava Examples and Code Snippets
Community Discussions
Trending Discussions on pljava
QUESTION
I want to compare the input data of a user, with my firestore record (data that is already stored in my Firebase.
...ANSWER
Answered 2020-May-04 at 15:23Simply convert the document into a POJO. There's a method toObject(Class valueType)
in Firestore API which resolves that.
QUESTION
I have set up a Postgres database server with PL/Java binary installed on it.
I have observed the process of getting an example PL/Java code to install and run on the database as it starts with moving the compiled .jar
file from application server to the database server, via file transfer, then call sqlj.install_jar('file::', 'name', true);
to load the .jar
into the database server.
I am looking for a different way to load compiled PL/Java code without resorting to the file transfer method as explained above. I am looking through PL/Java documentation and it mentions that sqlj.install_jar
function also supports pulling a .jar
from web. Theoretically, I could get the application server to briefly spin up a HTTP file server to serve the .jar
file and invoke the sqlj.install_jar
to pull the .jar
from the ad-hoc webserver. However, this may be difficult if the hostname of the application server is not known (i.e. not localhost or behind firewall/private network).
However I am wondering if there are a better way to do it. I am looking for a way that allows the application server to directly push implementation inside .jar
using the existing connection to Postgres server without resorting to "hacks" explained above.
Does something like this already exists in PL/Java?
...ANSWER
Answered 2020-Feb-06 at 05:54Unfortunately, No is the short answer. This PL/Java is not formatted or written with control files and .sql files needed to deploy it as an extension. Although whatever I read on their official site site says it's an extension for PG.
But to have an extension installed PG(postgres) way, you need to have the control file for it and cos its written in java and do not have any control files it has to be compiled in its own way.
Normally PGXS is something helps compile the extensions for postgres with the help of PG_CONFIG file.
Note: on their site it clearly mentions "PL/Java can be downloaded, then built using Maven"
Just wanted to share a little of what i'm aware of :), Hope it helps.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pljava
You can use pljava like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the pljava component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page