mirror of
1
Fork 0
gotosocial/internal/db/bundb
embr ed9158fa05
[fix] Make postgres connections magically work in common setups (#352)
* Don't use the system 'postgres' database by default

* Use postgres adapter defaults

The pgx code actually goes to great lengths to make postgres connections
Just Work(tm) out of the box, including supporting `~/.pg_service.conf`,
SSL certificates, UNIX sockets if it can find a socket at a common path,
and falling back to TCP to localhost if not.

(On Windows, it won't try to use UNIX sockets, but will read credentials
from %appdata% as is standard over there.)

By applying our flags as overrides only when they're specified, database
connections should Just Work(tm) anywhere `psql gotosocial` does.
2021-12-21 12:08:27 +01:00
..
migrations Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
account.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
account_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
admin.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
admin_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
basic.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
basic_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
bundb.go [fix] Make postgres connections magically work in common setups (#352) 2021-12-21 12:08:27 +01:00
bundb_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
conn.go reference global logrus (#274) 2021-10-11 14:37:33 +02:00
domain.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
errors.go Add SQLite support, fix un-thread-safe DB caches, small performance f… (#172) 2021-08-29 16:41:41 +02:00
instance.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
media.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
mention.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
mention_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
notification.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
relationship.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
relationship_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
session.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
session_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
status.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
status_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
timeline.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
timeline_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
trace.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
util.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00