Logo
Explore Help
Sign In
enub/pictureframe
1
0
Fork 0
You've already forked pictureframe
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
pictureframe/backend/db.js
enub 559057569e adding postgres db, and upload redirect --- Prompt: Als nächstes sollten wir uns darum kümmern, dass die Bildtitel und Bildbeschreibungen auch in einer Datenbank gespeichert werden. Außerdem finde ich es noch nicht schön, dass wir anch hochladen eines bildes nur 'Upload erfolgreich!' sehen.
2025-06-13 18:06:08 +02:00

13 lines
202 B
JavaScript
Raw Permalink Blame History

import pkg from 'pg';
const { Pool } = pkg;
const pool = new Pool({
user: 'urlaub',
host: 'db',
database: 'urlaubsbilder',
password: 'geheim',
port: 5432,
});
export default pool;
Reference in New Issue View Git Blame Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 190ms Template: 12ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API