Giter Site home page Giter Site logo

psqlodbc's Introduction

This is a clone of the PostgreSQL ODBC driver. Specifically, this repo contains the tests that are defined there for usage with the DuckDB ODBC client.

Running the tests

This directory should be cloned inside of a DuckDB directory, and pwd should be inside that directory.

git clone [email protected]:Mytherin/psqlodbc.git

After that, we build DuckDB with the ODBC driver enabled, and build the PSQL ODBC tests.

export BUILD_ODBC=1 make debug
(cd psqlodbc && make debug)

Now we can run the tests using the following script:

Warning: this script will override your ODBC driver config (~/.odbc.ini and ~/.odbcinst.ini).

./tools/odbc/test/run_psqlodbc_tests.sh

Fixing Output

If anything goes wrong running this script, we can run individual tests like this:

(cd psqlodbc && ./build/debug/psql_odbc_test [test_name])

If the test fails, but the new output looks correct (e.g. when you have changed something that causes the output to change), we can append --fix to this command to accept the new output as the correct output. For example:

(cd psqlodbc && ./build/debug/psql_odbc_test [test_name] --fix)

You may need to delete lingering database files first by running the following commands:

rm -f psqlodbc/contrib_regression
rm -f psqlodbc/contrib_regression.wal

psqlodbc's People

Contributors

tiagokepe avatar mytherin avatar hannes avatar tishj avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.