Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Discussion How Can i Connect Unity to Postgres Database

Discussion in 'Editor & General Support' started by dweekdev, Aug 23, 2022.

  1. dweekdev

    dweekdev

    Joined:
    Aug 2, 2021
    Posts:
    2
    How can i establish connection unity to Postgres DB
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    31,176
    There may be assets on the Unity Asset Store to let you integrate some flavor of this DB. I have used ones to integrate SQLite and they worked quite well.

    Otherwise if it is a database on a remote server, it's like any other network resource: get it working from the PC first, then bring it up in Unity.

    Networking, UnityWebRequest, WWW, Postman, curl, WebAPI, etc:

    https://forum.unity.com/threads/using-unity-for-subscription-lists.1070663/#post-6910289

    https://forum.unity.com/threads/unity-web-request-acting-stupid.1096396/#post-7060150

    And setting up a proxy can be very helpful too, in order to compare traffic:

    https://support.unity.com/hc/en-us/articles/115002917683-Using-Charles-Proxy-with-Unity