office-gobmx/connectivity
Stephan Bergmann 4bea744971 loplugin:noexcept (clang-cl)
Change-Id: Ife669f959358992b547b408ab5d1f6bf1c1d14bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115744
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-05-19 08:53:34 +02:00
..
com/sun/star/sdbcx/comp/hsqldb
inc throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
org/hsqldb/lib
qa Simplify a bit initialization in sharedresources_test.cxx 2021-05-14 23:08:54 +02:00
registry tdf#138715 remove mork driver 2020-12-13 17:29:09 +01:00
source loplugin:noexcept (clang-cl) 2021-05-19 08:53:34 +02:00
workben tdf#124176 Use pragma once in connectivity 2021-03-23 12:12:27 +01:00
AllLangMoTarget_cnr.mk
Configuration_ado.mk
Configuration_calc.mk
Configuration_dbase.mk
Configuration_evoab.mk
Configuration_firebird.mk
Configuration_flat.mk
Configuration_hsqldb.mk
Configuration_jdbc.mk
Configuration_macab.mk
Configuration_mysql.mk
Configuration_mysql_jdbc.mk
Configuration_odbc.mk
Configuration_postgresql.mk
Configuration_writer.mk
CppunitTest_connectivity_ado.mk
CppunitTest_connectivity_commontools.mk Fix some new dependencies on boost_headers 2019-12-06 21:33:55 +01:00
CppunitTest_connectivity_mysql_test.mk connectivity: fix mysql test 2020-06-17 17:54:17 +02:00
CppunitTest_connectivity_sharedresources.mk Fix some new dependencies on boost_headers 2019-12-06 21:33:55 +01:00
IwyuFilter_connectivity.yaml tdf#138715 remove mork driver 2020-12-13 17:29:09 +01:00
Jar_ConnectivityTools.mk tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
Jar_sdbc_hsqldb.mk
JunitTest_complex.mk
Library_ado.mk connectivity/ado: create instances with uno constructors 2020-07-23 10:14:17 +02:00
Library_calc.mk connectivity: create instances with uno constructors 2020-07-11 19:54:57 +02:00
Library_dbase.mk connectivity: create instances with uno constructors 2020-07-11 19:54:57 +02:00
Library_dbpool2.mk connectivity/dbpool2: create instances with uno constructors 2020-07-14 10:37:14 +02:00
Library_dbtools.mk Move Boost.Spirit usage away from legacy namespace 2020-02-20 18:50:24 +01:00
Library_evoab.mk connectivity/evoab: create instances with uno constructors 2020-07-14 09:03:43 +02:00
Library_file.mk
Library_firebird_sdbc.mk connectivity/firebird: create instances with uno constructors 2020-07-14 10:26:23 +02:00
Library_flat.mk connectivity: create instances with uno constructors 2020-07-11 19:54:57 +02:00
Library_hsqldb.mk connectivity/hsqldb: create instances with uno constructors 2020-07-14 09:09:31 +02:00
Library_jdbc.mk connectivity/jdbc: create instances with uno constructors 2020-07-14 09:09:04 +02:00
Library_macab1.mk connectivity/macab: create instances with uno constructors 2020-07-14 09:04:05 +02:00
Library_macabdrv1.mk
Library_mozbootstrap.mk restore com.sun.star.mozilla.MozillaBootstrap 2021-02-05 10:11:28 +01:00
Library_mysql_jdbc.mk connectivity/mysql: create instances with uno constructors 2020-07-13 18:33:34 +02:00
Library_mysqlc.mk tdf#135202: Mysql use openssl libs to be able to use caching_sha2_pw 2020-11-06 17:00:44 +01:00
Library_odbc.mk connectivity/odbc: create instances with uno constructors 2020-07-23 11:56:22 +02:00
Library_postgresql-sdbc-impl.mk
Library_postgresql-sdbc.mk
Library_sdbc2.mk connectivity/sdbc2: create instances with uno constructors 2020-08-01 13:14:25 +02:00
Library_writer.mk connectivity: create instances with uno constructors 2020-07-11 19:54:57 +02:00
Makefile
Module_connectivity.mk restore com.sun.star.mozilla.MozillaBootstrap 2021-02-05 10:11:28 +01:00
Package_postgresql-sdbc.mk remove postgresql-sdbc.ini 2020-02-27 09:09:28 +01:00
Rdb_postgresql-sdbc.mk
README.md Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00

Database Connectivity

Contains database pieces, drivers, etc.

dbaccess builds UI on top of this.

Testing

PostgreSQL

For testing, use:

podman pull postgres:latest
podman run --name=postgres -e POSTGRES_PASSWORD=foobarbaz -p 127.0.0.1:5432:5432 postgres:latest

In Base, Connect to an existing database, select PostgreSQL:

URL: host=127.0.0.1 port=5432 dbname=postgres
User: postgres
Password: foobarbaz

podman stop postgres
podman rm postgres

In order to test SCRAM authentication, create the container like this:

podman run --name=postgres -e POSTGRES_PASSWORD=foobarbaz -e POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256 -e POSTGRES_HOST_AUTH_METHOD=scram-sha-256 -p 127.0.0.1:5432:5432 postgres:latest

MySQL

For mysql_test:

  • The CppunitTest_mysql_test unit test can be used to test the mysqlc library with any versions of mysql or mariadb server of your choice.

  • This test does not run automatically. It can be triggered with setting the environment variable "CONNECTIVITY_TEST_MYSQL_DRIVER".

  • The environment variable should contain a URL of the following format: [user]/[passwd]@sdbc:mysql:mysqlc:[host]:[port]/db_name

  • tl;dr:

    podman pull mariadb/server
    podman run --name=mariadb -e MYSQL_ROOT_PASSWORD=foobarbaz -p 127.0.0.1:3306:3306 mariadb/server
    podman exec -it mariadb /bin/bash -c "echo -e CREATE DATABASE test | /usr/bin/mysql -u root"
    (cd connectivity && make -srj8 CppunitTest_connectivity_mysql_test CONNECTIVITY_TEST_MYSQL_DRIVER="root/foobarbaz@sdbc:mysql:mysqlc:127.0.0.1:3306/test")
    podman stop mariadb
    podman rm mariadb