Quantcast
Channel: PostgreSQL – Gonzalo Ayuso | Web Architect
Browsing latest articles
Browse All 16 View Live

Image may be NSFW.
Clik here to view.

Building a simple SQL wrapper with PHP

If we don’t use an ORM within our projects we need to write SQL statements by hand. I don’t mind to write SQL. It’s simple and descriptive but sometimes we like to use helpers to avoid write the same...

View Article



Image may be NSFW.
Clik here to view.

Database connection pooling with PHP and React (node.php)

Last saturday I meet a new hype: “React” also known as “node.php”. Basically it’s the same idea than node.js but built with PHP instead of javascript. Twitter was on fire with this new library (at...

View Article

Image may be NSFW.
Clik here to view.

Building a simple SQL wrapper with PHP. Part 2.

In one of our last post we built a simple SQL wrapper with PHP. Now we are going to improve it a little bit. We area going to use a class Table instead of the table name. Why? Simple. We want to create...

View Article

Image may be NSFW.
Clik here to view.

Sending sockets from PostgreSQL triggers with Python

Picture this: We want to notify to one external service each time that one record is inserted in the database. We can find the place where the insert statement is done and create a TCP client there,...

View Article

Image may be NSFW.
Clik here to view.

Building one HTTP client in PostgreSQL with PL/Python

Don’t ask me way, but I need to call to a HTTP server (one Silex application) from a PostgreSQL database. I want to do something like this: select get('http://localhost:8080?name=Gonzalo')->'hello';...

View Article


Image may be NSFW.
Clik here to view.

Foreign Data Wrappers with PostgreSQL and PHP

PostgreSQL is more than a relational database. It has many cool features. Today we’re going to play with Foreign Data Wrappers (FDW). The idea is crate a virtual table from an external datasource and...

View Article

Image may be NSFW.
Clik here to view.

Notify events from PostgreSQL to external listeners

Sometimes we need to call external programs from our PostgreSQL database. We can send sockets from SQL statements. I’ve written about it. The problem with this approach the following one. If user...

View Article

Image may be NSFW.
Clik here to view.

Performing UPSERT (Update or Insert) with PostgreSQL and PHP

That’s a typical situation. Imagine you’ve got one table CREATE TABLE PUBLIC.TBUPSERTEXAMPLE ( KEY1 CHARACTER VARYING(10) NOT NULL, KEY2 CHARACTER VARYING(14) NOT NULL, KEY3 CHARACTER VARYING(14) NOT...

View Article


PHP application in SAP Cloud Platform. With PostgreSQL, Redis and Cloud Foundry

Keeping on with my study of SAP’s cloud platform (SCP) and Cloud Foundry today I’m going to build a simple PHP application. This application serves a simple Bootstrap landing page. The application uses...

View Article


Image may be NSFW.
Clik here to view.

Working with SAPUI5 locally (part 3). Adding more services in Docker

In the previous project we moved one project to docker. The idea was to move exactly the same functionality (even without touching anything within the source code). Now we’re going to add more...

View Article
Browsing latest articles
Browse All 16 View Live




Latest Images