Migrate from Neo4j to Memgraph

This commit is contained in:
Maciej Pędzich 2024-07-27 17:28:36 +02:00
parent 94e3386774
commit 7fdb61aff1
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D
3 changed files with 8 additions and 9 deletions

View File

@ -1,6 +1,6 @@
import { auth, driver } from 'neo4j-driver';
export const db = driver(
import.meta.env.NEO4J_DB_URI,
auth.basic(import.meta.env.NEO4J_USERNAME, import.meta.env.NEO4J_PASSWORD)
import.meta.env.DB_URI,
auth.basic(import.meta.env.DB_USERNAME, import.meta.env.DB_PASSWORD)
);

6
src/env.d.ts vendored
View File

@ -2,9 +2,9 @@
/// <reference types="astro/client" />
interface ImportMetaEnv {
readonly NEO4J_DB_URI: string;
readonly NEO4J_USERNAME: string;
readonly NEO4J_PASSWORD: string;
readonly DB_URI: string;
readonly DB_USERNAME: string;
readonly DB_PASSWORD: string;
}
interface ImportMeta {

View File

@ -16,10 +16,9 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
to the other using as few connections as possible.
</p>
<p>
The aforementioned data was sourced from <a
href="http://ergast.com/mrd"
target="_blank">Ergast</a
>. The website was built with <a href="https://astro.build" target="_blank"
Data was sourced from <a href="http://ergast.com/mrd" target="_blank"
>Ergast</a
>. This website was built with <a href="https://astro.build" target="_blank"
>Astro</a
>, <a href="https://picocss.com" target="_blank">Pico CSS</a>, <a
href="https://neo4j.com"