Answer the question
In order to leave comments, you need to log in
RESTful API to work with PostgreSQL other than ArrestDB?
Advise ready REST Full API for work with PostgreSQL?
Trying https://github.com/alixaxel/ArrestDB.
Error 403 crashes. I
connect using PDO to the database
<?php
$user = 'vladimir';
$pass = '';
try {
$dbh = new PDO('pgsql:host=localhost;dbname=jkh', $user, $pass);
foreach($dbh->query('SELECT * from test') as $row) {
print_r($row);
}
$dbh = null;
} catch (PDOException $e) {
print "Error!: " . $e->getMessage() . "<br/>";
die();
}
?>
$dsn = 'pgsql://[email protected]/jkh/';
$clients = array
(
'127.0.0.1',
'127.0.0.2',
'127.0.0.3',
);
Answer the question
In order to leave comments, you need to log in
How are Postgresql and rest related?
RESTful is implemented on any framework. And without, if you have hands.
For example, here are some lessons .
Again, for PHP, 4k repositories
https://github.com/topics/restful?utf8=✓&q=laravel...
And you're just trying to connect to the database.
Read about rest.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question