const { Client } = require('pg');

async function check() {
    const client = new Client({
        host: '87.106.21.21',
        port: 5432,
        user: 'enwelo_admin',
        password: 'WX1t1cgP1qK09',
        database: 'enwelo'
    });
    
    try {
        await client.connect();
        const res = await client.query(`
            SELECT srid FROM geometry_columns 
            WHERE f_table_schema = 'geodaten' AND f_table_name = 'wea_standorte';
        `);
        console.log("SRID of geodaten.wea_standorte.geom:");
        res.rows.forEach(r => console.log(r.srid));
    } catch (e) {
        console.error("Error:", e);
    } finally {
        await client.end();
    }
}
check();
