Commit 80ee0a4
authored
Remove the `url` property from `datasource` blocks in PSL, refactor the
code to handle URLs separately and update the tests.
Ref:
https://linear.app/prisma-company/issue/TML-1545/remove-url-datasource-attribute-from-psl
/prisma-branch next
1 parent bb196f7 commit 80ee0a4
616 files changed
Lines changed: 3950 additions & 6497 deletions
File tree
- libs
- driver-adapters/executor/src
- test-setup/src
- prisma-fmt
- src
- code_actions
- text_document_completion
- tests
- code_actions/scenarios
- add_missing_relation_attribute_mongodb
- add_missing_relation_attribute
- create_missing_block_composite_type_crlf
- create_missing_block_composite_type
- create_missing_block_mongodb
- create_missing_block
- mongodb_at_map_multifile
- mongodb_at_map_with_validation_errors
- mongodb_at_map
- mongodb_auto_native
- multi_schema_add_to_existing_schemas_multifile
- multi_schema_add_to_existing_schemas
- multi_schema_add_to_nonexisting_schemas
- multi_schema_one_model_multifile
- multi_schema_one_model_one_enum_multifile
- multi_schema_one_model_one_enum
- multi_schema_one_model
- multi_schema_two_models_relation_mode
- multi_schema_two_models
- one_to_many_referenced_side_misses_unique_compound_field_broken_relation
- one_to_many_referenced_side_misses_unique_compound_field_existing_arguments
- one_to_many_referenced_side_misses_unique_compound_field_indentation_four_spaces
- one_to_many_referenced_side_misses_unique_compound_field_multifile
- one_to_many_referenced_side_misses_unique_compound_field
- one_to_many_referenced_side_misses_unique_single_field_broken_relation
- one_to_many_referenced_side_misses_unique_single_field_multifile
- one_to_many_referenced_side_misses_unique_single_field
- one_to_one_referenced_side_misses_unique_compound_field_multifile
- one_to_one_referenced_side_misses_unique_compound_field
- one_to_one_referenced_side_misses_unique_single_field_multifile
- one_to_one_referenced_side_misses_unique_single_field
- one_to_one_referencing_side_misses_unique_compound_field_indentation_four_spaces
- one_to_one_referencing_side_misses_unique_compound_field_multifile
- one_to_one_referencing_side_misses_unique_compound_field
- one_to_one_referencing_side_misses_unique_single_field_multifile
- one_to_one_referencing_side_misses_unique_single_field
- relation_mode_mysql_foreign_keys_set_default_multifile
- relation_mode_mysql_foreign_keys_set_default
- relation_mode_prisma_missing_index_multifile
- relation_mode_prisma_missing_index
- relation_mode_referential_integrity
- hover/scenarios
- composite_from_block_name
- composite_from_field_type
- embedded_m2n_mongodb
- enum_from_block_name
- enum_from_field_type
- field_from_composite_field_name
- field_from_model_field_name
- model_from_block_name
- model_from_model_type_includes_broken_relations
- model_from_model_type_on_broken_relations
- model_from_view_type
- value_from_enum_value_name
- references/scenarios
- composite_type_as_type
- composite_type_name
- datasource_as_attribute
- datasource_name
- enum_as_type
- enum_name
- model_as_type
- model_name
- model_relation_fields
- model_relation_references
- model_unique_fields
- view_as_type
- view_index_fields
- view_name
- view_relation_fields
- view_relation_references
- regressions
- text_document_completion
- scenarios
- argument_after_trailing_comma
- datasource_default_completions
- datasource_env_db_url
- datasource_multischema
- datasource_url_arguments
- default_map_end_of_args_list
- default_map_mssql_in_arg_value
- default_map_mssql_multifile
- default_map_mssql
- extended_indexes_basic
- extended_indexes_operators_cockroach_gin
- extended_indexes_operators_postgres_brin
- extended_indexes_operators_postgres_gin
- extended_indexes_operators_postgres_gist
- extended_indexes_operators_postgres_spgist
- extended_indexes_types_cockroach
- extended_indexes_types_mongo
- extended_indexes_types_mysql
- extended_indexes_types_postgres_multifile
- extended_indexes_types_postgres
- extended_indexes_types_sqlite
- extended_indexes_types_sqlserver
- no_default_map_on_postgres_multifile
- no_default_map_on_postgres
- referential_actions_end_of_args_list
- referential_actions_in_progress_2
- referential_actions_in_progress
- referential_actions_middle_of_args_list
- referential_actions_mssql
- referential_actions_multifile
- referential_actions_relation_mode_fk_mysql
- referential_actions_relation_mode_prisma_mongodb
- referential_actions_relation_mode_prisma_mysql
- referential_actions_with_trailing_comma
- psl
- diagnostics/src
- psl-core
- src
- configuration
- mcf
- validate
- psl
- src
- tests
- attributes
- postgres_indices
- relations
- referential_actions
- base
- capabilities
- common
- config
- functions
- multi_file
- parsing
- reformatter_multi_file
- align_blocks.reformatted
- align_blocks
- relation_1_to_1.reformatted
- relation_1_to_1
- relation_list.reformatted
- relation_list
- relation_single.reformatted
- relation_single
- reformatter
- relations
- reformat
- types
- validation
- attributes
- cuid
- index_clustering
- index
- missing_index_warning
- relation_mode_prisma
- map
- nanoid
- relation_mode
- schema
- shard_key
- ulid
- uuid
- capabilities
- cockroachdb
- composite_types
- datasource
- enums
- generator
- models
- mysql
- postgres_extensions
- postgres_indexes
- brin
- gin
- spgist
- postgres
- preview_features
- full_text_index
- native_full_text_search_postgres
- old_full_text_search
- schema_engine_driver_adapters/postgres
- relations
- mongodb
- postgres
- types/mongodb
- views
- schema-ast/src/ast
- find_at_position
- query-compiler
- core-tests/tests/query_validation_tests
- composites
- create
- postgres_basic
- dmmf
- src/tests
- test-schemas
- test_files
- query-compiler-playground/src
- query-compiler/tests/data
- query-structure
- src
- tests
- request-handlers/src/protocols/json
- schema/test-schemas
- query-engine
- connector-test-kit-rs
- qe-setup/src
- query-engine-tests/tests/new/regressions
- query-tests-setup/src
- connector_tag
- datamodel_rendering
- runner
- connectors/mongodb-query-connector
- src/interface
- schema-engine
- cli
- src
- tests
- connectors
- mongodb-schema-connector/tests
- introspection
- multi_file
- test_api
- migrations/scenarios
- composite_indexes_can_be_changed_from_descending_to_ascending
- composite_indexes_can_be_created_descending
- composite_indexes_can_be_created
- composite_indexes_can_be_dropped
- composite_indexes_can_be_renamed
- composite_indexes_work_on_arrays
- index_keys_can_be_changed
- index_to_unique
- map_annotations
- multi_column_fulltext_indexes_can_be_created
- multi_column_mixed_fulltext_indexes_can_be_changed
- multi_column_mixed_fulltext_indexes_can_be_created
- single_column_fulltext_indexes_can_be_created
- schema-connector/src
- sql-schema-connector/src/introspection/rendering
- core
- src
- commands
- datamodel-renderer/src
- configuration
- sql-introspection-tests
- src
- tests
- cockroachdb
- commenting_out
- enums
- multi_schema
- mysql
- postgres
- re_introspection
- relation_mode
- referential_actions
- relations
- remapping_database_names
- simple
- cockroach
- views
- mssql
- mysql
- ignore
- views
- postgres
- relations
- sqlite/views
- tables
- views
- sql-migration-tests
- src
- tests
- create_migration
- errors
- initialization
- introspection
- migrations
- id
- mssql
- postgres
- query_introspection
- single_migration_tests
- mysql
- enums
- postgres
- enums
- sqlite
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
193 | 192 | | |
194 | | - | |
195 | 193 | | |
196 | 194 | | |
197 | 195 | | |
| |||
201 | 199 | | |
202 | 200 | | |
203 | 201 | | |
204 | | - | |
| 202 | + | |
205 | 203 | | |
206 | 204 | | |
207 | 205 | | |
| |||
216 | 214 | | |
217 | 215 | | |
218 | 216 | | |
219 | | - | |
220 | 217 | | |
221 | 218 | | |
222 | 219 | | |
223 | 220 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | 221 | | |
230 | 222 | | |
231 | 223 | | |
| |||
251 | 243 | | |
252 | 244 | | |
253 | 245 | | |
254 | | - | |
255 | | - | |
256 | 246 | | |
257 | 247 | | |
258 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
| 164 | + | |
| 165 | + | |
169 | 166 | | |
170 | 167 | | |
171 | 168 | | |
| |||
180 | 177 | | |
181 | 178 | | |
182 | 179 | | |
183 | | - | |
| 180 | + | |
184 | 181 | | |
185 | 182 | | |
186 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | 196 | | |
198 | 197 | | |
199 | 198 | | |
| |||
203 | 202 | | |
204 | 203 | | |
205 | 204 | | |
206 | | - | |
| 205 | + | |
207 | 206 | | |
208 | 207 | | |
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
212 | 211 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
| 212 | + | |
233 | 213 | | |
234 | 214 | | |
235 | 215 | | |
| |||
245 | 225 | | |
246 | 226 | | |
247 | 227 | | |
248 | | - | |
| 228 | + | |
249 | 229 | | |
250 | 230 | | |
251 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | 192 | | |
216 | 193 | | |
217 | 194 | | |
| |||
220 | 197 | | |
221 | 198 | | |
222 | 199 | | |
223 | | - | |
224 | 200 | | |
225 | 201 | | |
226 | 202 | | |
| |||
6907 | 6883 | | |
6908 | 6884 | | |
6909 | 6885 | | |
6910 | | - | |
6911 | 6886 | | |
6912 | 6887 | | |
6913 | 6888 | | |
| |||
6918 | 6893 | | |
6919 | 6894 | | |
6920 | 6895 | | |
6921 | | - | |
| 6896 | + | |
6922 | 6897 | | |
6923 | 6898 | | |
6924 | 6899 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
| |||
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
122 | | - | |
123 | | - | |
| 121 | + | |
| 122 | + | |
124 | 123 | | |
125 | 124 | | |
126 | 125 | | |
| |||
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
137 | | - | |
138 | 136 | | |
139 | 137 | | |
140 | 138 | | |
| |||
158 | 156 | | |
159 | 157 | | |
160 | 158 | | |
161 | | - | |
162 | | - | |
| 159 | + | |
| 160 | + | |
163 | 161 | | |
164 | 162 | | |
165 | 163 | | |
| |||
0 commit comments