Skip to content

Run on Postgres: Drivine 0.2.0, a postgres profile and tests - #57

Merged
jasperblues merged 1 commit into
mainfrom
feat/postgres
Oct 22, 2026
Merged

jasperblues merged 1 commit into
mainfrom
feat/postgres

Conversation

@jasperblues

Copy link
Copy Markdown
Contributor

Guide could not run on Postgres.

Before

  • Drivine 0.1.6: Neo4j, FalkorDB, Memgraph and Oracle only.
  • No Postgres profile, compose service or JDBC driver.

Now

  • Drivine 0.2.0 (pom.xml and codegen-gradle/build.gradle.kts).
  • postgres Spring profile (type: POSTGRES, port 5432, POSTGRES_* overrides) and a postgres compose profile on pgvector/pgvector:pg17.
  • org.postgresql:postgresql at runtime, beside the Oracle driver.
  • The store tests (users, personas, stats, ingest) also run on a Postgres test container, on by default: 25 more tests, 183 in all.
  • README: Postgres in the backends table, run example, settings, and how to browse the tables with psql.

Key change

spring.config.activate.on-profile: postgres
database:
  dataSources:
    neo:
      type: POSTGRES
      port: ${POSTGRES_PORT:5432}
@ActiveProfiles("test-postgres")
class GuideStatsServicePostgresTest : GuideStatsServiceTest()

Depends on embabel/embabel-chat-store#47 and embabel/embabel-agent-rag-graph#70 being merged and their 0.7.0-SNAPSHOT / 0.6.0-SNAPSHOT builds published on Drivine 0.2.0. Until then CI resolves the older snapshots, on Drivine 0.1.9.

Drivine 0.2.0 reads Postgres with plain SQL, pgvector for vector search and
pg_trgm for full text. Guide gets a `postgres` Spring profile, a `postgres`
compose profile on pgvector/pgvector:pg17, and the Postgres JDBC driver.

The store tests (users, personas, stats, ingest) run again on a Postgres
test container, on by default. The README says how to run, configure and
browse Guide on Postgres.
@jasperblues
jasperblues merged commit 8023649 into main Oct 22, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant