office-gobmx/connectivity
Noel c83166ce71 loplugin:passstuffbyref
Change-Id: I330e0ab6c9955939dad313f9d472f93e39dbd313
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109924
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-01-26 08:30:42 +01:00
..
com/sun/star/sdbcx/comp/hsqldb
inc update pches 2020-12-15 14:10:44 +01:00
org/hsqldb/lib
qa loplugin:stringviewparam: operator + 2020-12-29 16:42:33 +01:00
registry tdf#138715 remove mork driver 2020-12-13 17:29:09 +01:00
source loplugin:passstuffbyref 2021-01-26 08:30:42 +01:00
workben compact namespace: connectivity 2020-07-18 19:08:12 +02: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 do not require $(SRCDIR) in every gb_Library_set_precompiled_header 2019-09-23 10:47:25 +02:00
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_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 do not require $(SRCDIR) in every gb_Library_set_precompiled_header 2019-09-23 10:47:25 +02:00
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 tdf#138715 remove mork driver 2020-12-13 17:29:09 +01:00
Package_postgresql-sdbc.mk remove postgresql-sdbc.ini 2020-02-27 09:09:28 +01:00
Rdb_postgresql-sdbc.mk
README connectivity: document how to test postgresql manually 2021-01-20 11:32:34 +01:00

Contains database pieces, drivers, etc.

[[dbaccess]] builds UI on top of this.

=== 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_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