PostgreSQL as a Data Science all-in-one with relational, spatial, vector, and graph capabilities.
766
PostgreSQL as a Data Science all-in-one service.
Set the usual Postgres environment variables such as:
POSTGRES_DBPOSTGRES_USERPOSTGRES_PASSWORDThe image will initialise the extensions at runtime, automatically grant the POSTGRES_USER the ability to use the graph catalog, and extend the search_path to include it (so you can just write SELECT create_graph('new_graph'); as opposed to needing to prefix the cypher commands with the schema ag_catalog).
docker run --rm -p 5432:5432 -e POSTGRES_PASSWORD=this1sntSecure darthveitcher/postdata
Connect now with your password, the default user (postgres) and the default database (postgres) and run some example commands.
-- Create a new graph
SELECT * FROM create_graph('new_graph');
>>> graph "new_graph" has been created
-- Create and return a new person
SELECT *
FROM cypher('new_graph', $$
CREATE (a {name: 'Andres'})
RETURN a
$$) as (a agtype);
{"id": 281474976710657, "label": "", "properties": {"name": "Andres"}}::vertex
Content type
Image
Digest
sha256:efc0227cb…
Size
231 MB
Last updated
4 months ago
docker pull darthveitcher/postdata