grafana/pkg/services/sqlstore
Piotr Jamróz b30e0aa5aa
Correlations: Add organization id (#72258)
* Add org_id to correlations

* Add tests

* Allow org_id to be null in case org_id=0 is used

* Create organization to ensure stable id is generated

* Fix linting

* Ensure backwards compatibility

* Add deprecation information

* Migrate correlations indices

* Default org_id when migrating

* Remove redundant default

* Make PK non-nullable
2023-08-24 09:39:30 +02:00
..
migrations Correlations: Add organization id (#72258) 2023-08-24 09:39:30 +02:00
migrator SQLStore: Fix Postgres dialect treating "false" migrator default as true (#69353) 2023-06-22 15:09:36 -04:00
permissions Nested folders: Fix search query for empty self-contained permissions (#72727) 2023-08-02 14:12:46 +03:00
searchstore Search API: Search by folder UID (#65040) 2023-08-04 12:43:47 +03:00
session SQLX: Expose sqlxdb query functions (#57227) 2022-10-19 07:33:40 -07:00
sqlutil Chore: remove xorm from preference (#53803) 2022-08-17 22:07:20 -04:00
bulk_test.go Build: clean up and document integration test convention (#58170) 2022-11-04 10:14:21 -04:00
bulk.go SQLStore: Create utility for bulk inserts (#57632) 2022-11-01 13:24:32 -05:00
database_wrapper.go Traces: Fix timestamp for database query traces (#61109) 2023-01-09 09:40:55 -05:00
logger.go Chore: Fix goimports grouping in pkg/services (#62420) 2023-01-30 08:21:27 +00:00
session_test.go SQLStore: Fix SQLite error propagation if query retries are disabled (#64904) 2023-03-17 12:57:13 +02:00
session.go Chore: Add errutils helpers (#73577) 2023-08-22 12:52:24 +02:00
sqlstore_metrics_test.go Metrics: Fixed grafana_database_conn_* metrics, and added new go_sql_stats_* metrics as eventual replacement (#54405) 2022-08-31 08:54:32 -04:00
sqlstore_metrics.go Metrics: Fixed grafana_database_conn_* metrics, and added new go_sql_stats_* metrics as eventual replacement (#54405) 2022-08-31 08:54:32 -04:00
sqlstore_test.go SQLStore: Fix regression in PostgreSQL connection string (#71368) 2023-07-11 16:47:35 +03:00
sqlstore.go SQLStore: Fix regression in PostgreSQL connection string (#71368) 2023-07-11 16:47:35 +03:00
tls_mysql.go Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
transactions_test.go SQLStore: Add test for nested transactions events (#60500) 2023-01-23 14:17:56 +01:00
transactions.go SQLStore: Add test for nested transactions events (#60500) 2023-01-23 14:17:56 +01:00
user.go Chore: Ignore unique constrain failure when creating the main organization (#68644) 2023-05-18 11:26:29 +03:00