planetscale 0.1.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.buildkite/pipeline.yml +21 -0
  3. data/.github/workflows/ci.yml +5 -6
  4. data/.github/workflows/gem-push.yml +4 -3
  5. data/.licenses/go/github.com/planetscale/planetscale-go/planetscale.dep.yml +56 -3
  6. data/.licenses/go/github.com/planetscale/sql-proxy/proxy.dep.yml +205 -172
  7. data/.licenses/go/go.uber.org/zap.dep.yml +1 -1
  8. data/.licenses/go/go.uber.org/zap/buffer.dep.yml +1 -1
  9. data/.licenses/go/go.uber.org/zap/internal/bufferpool.dep.yml +1 -1
  10. data/.licenses/go/go.uber.org/zap/internal/color.dep.yml +1 -1
  11. data/.licenses/go/go.uber.org/zap/internal/exit.dep.yml +1 -1
  12. data/.licenses/go/go.uber.org/zap/zapcore.dep.yml +1 -1
  13. data/README.md +9 -8
  14. data/controller.go +23 -10
  15. data/go.mod +3 -3
  16. data/go.sum +24 -23
  17. data/lib/generators/planetscale/install_generator.rb +8 -6
  18. data/lib/planetscale.rb +12 -12
  19. data/lib/planetscale/version.rb +1 -1
  20. data/planetscale.gemspec +1 -1
  21. data/proxy/planetscale-darwin.h +95 -0
  22. data/proxy/planetscale-darwin.so +0 -0
  23. data/proxy/planetscale-linux.h +95 -0
  24. data/proxy/planetscale-linux.so +0 -0
  25. data/vendor/github.com/planetscale/planetscale-go/LICENSE +202 -0
  26. data/vendor/github.com/planetscale/planetscale-go/planetscale/audit_logs.go +136 -0
  27. data/vendor/github.com/planetscale/planetscale-go/planetscale/branches.go +6 -12
  28. data/vendor/github.com/planetscale/planetscale-go/planetscale/certs.go +40 -16
  29. data/vendor/github.com/planetscale/planetscale-go/planetscale/client.go +13 -6
  30. data/vendor/github.com/planetscale/planetscale-go/planetscale/databases.go +2 -0
  31. data/vendor/github.com/planetscale/planetscale-go/planetscale/organizations.go +25 -0
  32. data/vendor/github.com/planetscale/planetscale-go/planetscale/regions.go +52 -0
  33. data/vendor/github.com/planetscale/planetscale-go/planetscale/service_tokens.go +1 -1
  34. data/vendor/github.com/planetscale/sql-proxy/LICENSE +202 -0
  35. data/vendor/github.com/planetscale/sql-proxy/proxy/client.go +17 -8
  36. data/vendor/go.uber.org/zap/CHANGELOG.md +60 -0
  37. data/vendor/go.uber.org/zap/CONTRIBUTING.md +0 -6
  38. data/vendor/go.uber.org/zap/FAQ.md +8 -0
  39. data/vendor/go.uber.org/zap/Makefile +13 -3
  40. data/vendor/go.uber.org/zap/README.md +4 -4
  41. data/vendor/go.uber.org/zap/buffer/buffer.go +18 -0
  42. data/vendor/go.uber.org/zap/field.go +10 -0
  43. data/vendor/go.uber.org/zap/go.mod +7 -6
  44. data/vendor/go.uber.org/zap/go.sum +25 -27
  45. data/vendor/go.uber.org/zap/http_handler.go +75 -24
  46. data/vendor/go.uber.org/zap/logger.go +11 -7
  47. data/vendor/go.uber.org/zap/options.go +8 -0
  48. data/vendor/go.uber.org/zap/sugar.go +21 -10
  49. data/vendor/go.uber.org/zap/zapcore/buffered_write_syncer.go +188 -0
  50. data/vendor/go.uber.org/zap/zapcore/clock.go +50 -0
  51. data/vendor/go.uber.org/zap/zapcore/console_encoder.go +1 -1
  52. data/vendor/go.uber.org/zap/zapcore/entry.go +2 -2
  53. data/vendor/go.uber.org/zap/zapcore/error.go +18 -1
  54. data/vendor/go.uber.org/zap/zapcore/field.go +7 -1
  55. data/vendor/go.uber.org/zap/zapcore/write_syncer.go +1 -2
  56. data/vendor/modules.txt +3 -3
  57. metadata +20 -10
  58. data/vendor/go.uber.org/zap/.travis.yml +0 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08676f6db7d2320ebf4bdcc91fe73d5232154cad5034eccc4cc33d4785210e10'
4
- data.tar.gz: efc1fcab97e5988842003792217056782a9a910977bb7b5a6532dc3f73c25f28
3
+ metadata.gz: ef9b82cff71169af3bf857f8fc3e664f2339817f8f553e5f18fb6e5a2881d062
4
+ data.tar.gz: b1fb4a43eacd5ee272ef3db6a72ddd6d75eebc093af3249598e4f389c61030ad
5
5
  SHA512:
6
- metadata.gz: 52a7c7101a2852f7844cba913a90cccb11b9b0601b7de3ca98d0167cf00606cd598489c58f5070f3e77d0f1ccb534d2a55b56b70ce015ef3577557e4ae2c4017
7
- data.tar.gz: 9ee252ca561dca3d4a3d6dbb863dc01941bc88458ca8f4078d3a3ef319c78437ef04ba6fe7b29d7b56dfddbffe38bdb1e0ce18a05cd8fc83bd6e3a10d79d16b4
6
+ metadata.gz: 26af151df726b4df8d427b7f0631676c1600ada416f7bbace0b7db5ce3bf6d12477744274f0811b65f006f86185d9cde808f3f8c675ecbdc4af4bdd6c5b1fb49
7
+ data.tar.gz: 8fb1b2bd0f74f6b4a812d78e135c48f234350f1ba602cd21c9d40f46dac6a4d7ba072aeca4fd69f326652a478cf42a948869f7e2b041f01bf73e311818978e6a
@@ -0,0 +1,21 @@
1
+ agents:
2
+ queue: "public"
3
+
4
+ steps:
5
+ - name: "Go build"
6
+ commands:
7
+ - "go build -v -x -buildmode=c-shared -o planetscale-linux.so.$BUILDKITE_COMMIT"
8
+ - "buildkite-agent artifact upload planetscale-linux.so.$BUILDKITE_COMMIT"
9
+ plugins:
10
+ - docker#v3.8.0:
11
+ image: "golang:1.16.4"
12
+ - wait
13
+ - name: "Ruby build and test %n"
14
+ commands:
15
+ - "mkdir proxy"
16
+ - "buildkite-agent artifact download planetscale-linux.so.$BUILDKITE_COMMIT proxy/ && mv proxy/planetscale-linux.so.$BUILDKITE_COMMIT proxy/planetscale-linux.so"
17
+ - "bundle install -j 8"
18
+ - "bundle exec rake test"
19
+ plugins:
20
+ - docker#v3.8.0:
21
+ image: "ruby:2.7-buster"
@@ -1,4 +1,4 @@
1
- name: Ruby Gem
1
+ name: Ruby Gem - Run Tests
2
2
 
3
3
  on:
4
4
  push:
@@ -13,12 +13,11 @@ jobs:
13
13
  steps:
14
14
  - uses: actions/checkout@v2
15
15
  - name: Set up Ruby 2.7
16
- uses: actions/setup-ruby@v1
16
+ uses: ruby/setup-ruby@v1
17
17
  with:
18
- ruby-version: 2.7.x
19
- - name: Bundle and Test
18
+ ruby-version: 2.7.3
19
+ bundler-cache: true
20
+ - name: Build and Test
20
21
  run: |
21
- gem install bundler
22
- bundle install
23
22
  go build -v -buildmode=c-shared -o proxy/planetscale-linux.so
24
23
  bundle exec rake test
@@ -1,4 +1,4 @@
1
- name: Ruby Gem
1
+ name: Ruby Gem - Build + Publish
2
2
 
3
3
  on:
4
4
  push:
@@ -15,9 +15,10 @@ jobs:
15
15
  - uses: nickvanw/actions-setup-docker@master
16
16
 
17
17
  - name: Set up Ruby 2.7
18
- uses: actions/setup-ruby@v1
18
+ uses: ruby/setup-ruby@v1
19
19
  with:
20
- ruby-version: 2.7.x
20
+ ruby-version: 2.7.3
21
+ bundler-cache: true
21
22
 
22
23
  - name: Add SHORT_SHA env property with commit short sha
23
24
  run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
@@ -1,22 +1,28 @@
1
1
  ---
2
2
  name: github.com/planetscale/planetscale-go/planetscale
3
- version: v0.25.0
3
+ version: v0.38.0
4
4
  type: go
5
- summary:
5
+ summary:
6
6
  homepage: https://godoc.org/github.com/planetscale/planetscale-go/planetscale
7
7
  license: apache-2.0
8
8
  licenses:
9
- - sources: LICENSE
9
+ - sources: planetscale-go/LICENSE
10
10
  text: |2
11
+
11
12
  Apache License
12
13
  Version 2.0, January 2004
13
14
  http://www.apache.org/licenses/
15
+
14
16
  TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
17
+
15
18
  1. Definitions.
19
+
16
20
  "License" shall mean the terms and conditions for use, reproduction,
17
21
  and distribution as defined by Sections 1 through 9 of this document.
22
+
18
23
  "Licensor" shall mean the copyright owner or entity authorized by
19
24
  the copyright owner that is granting the License.
25
+
20
26
  "Legal Entity" shall mean the union of the acting entity and all
21
27
  other entities that control, are controlled by, or are under common
22
28
  control with that entity. For the purposes of this definition,
@@ -24,19 +30,24 @@ licenses:
24
30
  direction or management of such entity, whether by contract or
25
31
  otherwise, or (ii) ownership of fifty percent (50%) or more of the
26
32
  outstanding shares, or (iii) beneficial ownership of such entity.
33
+
27
34
  "You" (or "Your") shall mean an individual or Legal Entity
28
35
  exercising permissions granted by this License.
36
+
29
37
  "Source" form shall mean the preferred form for making modifications,
30
38
  including but not limited to software source code, documentation
31
39
  source, and configuration files.
40
+
32
41
  "Object" form shall mean any form resulting from mechanical
33
42
  transformation or translation of a Source form, including but
34
43
  not limited to compiled object code, generated documentation,
35
44
  and conversions to other media types.
45
+
36
46
  "Work" shall mean the work of authorship, whether in Source or
37
47
  Object form, made available under the License, as indicated by a
38
48
  copyright notice that is included in or attached to the work
39
49
  (an example is provided in the Appendix below).
50
+
40
51
  "Derivative Works" shall mean any work, whether in Source or Object
41
52
  form, that is based on (or derived from) the Work and for which the
42
53
  editorial revisions, annotations, elaborations, or other modifications
@@ -44,6 +55,7 @@ licenses:
44
55
  of this License, Derivative Works shall not include works that remain
45
56
  separable from, or merely link (or bind by name) to the interfaces of,
46
57
  the Work and Derivative Works thereof.
58
+
47
59
  "Contribution" shall mean any work of authorship, including
48
60
  the original version of the Work and any modifications or additions
49
61
  to that Work or Derivative Works thereof, that is intentionally
@@ -57,15 +69,18 @@ licenses:
57
69
  Licensor for the purpose of discussing and improving the Work, but
58
70
  excluding communication that is conspicuously marked or otherwise
59
71
  designated in writing by the copyright owner as "Not a Contribution."
72
+
60
73
  "Contributor" shall mean Licensor and any individual or Legal Entity
61
74
  on behalf of whom a Contribution has been received by Licensor and
62
75
  subsequently incorporated within the Work.
76
+
63
77
  2. Grant of Copyright License. Subject to the terms and conditions of
64
78
  this License, each Contributor hereby grants to You a perpetual,
65
79
  worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
80
  copyright license to reproduce, prepare Derivative Works of,
67
81
  publicly display, publicly perform, sublicense, and distribute the
68
82
  Work and such Derivative Works in Source or Object form.
83
+
69
84
  3. Grant of Patent License. Subject to the terms and conditions of
70
85
  this License, each Contributor hereby grants to You a perpetual,
71
86
  worldwide, non-exclusive, no-charge, royalty-free, irrevocable
@@ -81,19 +96,24 @@ licenses:
81
96
  or contributory patent infringement, then any patent licenses
82
97
  granted to You under this License for that Work shall terminate
83
98
  as of the date such litigation is filed.
99
+
84
100
  4. Redistribution. You may reproduce and distribute copies of the
85
101
  Work or Derivative Works thereof in any medium, with or without
86
102
  modifications, and in Source or Object form, provided that You
87
103
  meet the following conditions:
104
+
88
105
  (a) You must give any other recipients of the Work or
89
106
  Derivative Works a copy of this License; and
107
+
90
108
  (b) You must cause any modified files to carry prominent notices
91
109
  stating that You changed the files; and
110
+
92
111
  (c) You must retain, in the Source form of any Derivative Works
93
112
  that You distribute, all copyright, patent, trademark, and
94
113
  attribution notices from the Source form of the Work,
95
114
  excluding those notices that do not pertain to any part of
96
115
  the Derivative Works; and
116
+
97
117
  (d) If the Work includes a "NOTICE" text file as part of its
98
118
  distribution, then any Derivative Works that You distribute must
99
119
  include a readable copy of the attribution notices contained
@@ -110,12 +130,14 @@ licenses:
110
130
  or as an addendum to the NOTICE text from the Work, provided
111
131
  that such additional attribution notices cannot be construed
112
132
  as modifying the License.
133
+
113
134
  You may add Your own copyright statement to Your modifications and
114
135
  may provide additional or different license terms and conditions
115
136
  for use, reproduction, or distribution of Your modifications, or
116
137
  for any such Derivative Works as a whole, provided Your use,
117
138
  reproduction, and distribution of the Work otherwise complies with
118
139
  the conditions stated in this License.
140
+
119
141
  5. Submission of Contributions. Unless You explicitly state otherwise,
120
142
  any Contribution intentionally submitted for inclusion in the Work
121
143
  by You to the Licensor shall be under the terms and conditions of
@@ -123,10 +145,12 @@ licenses:
123
145
  Notwithstanding the above, nothing herein shall supersede or modify
124
146
  the terms of any separate license agreement you may have executed
125
147
  with Licensor regarding such Contributions.
148
+
126
149
  6. Trademarks. This License does not grant permission to use the trade
127
150
  names, trademarks, service marks, or product names of the Licensor,
128
151
  except as required for reasonable and customary use in describing the
129
152
  origin of the Work and reproducing the content of the NOTICE file.
153
+
130
154
  7. Disclaimer of Warranty. Unless required by applicable law or
131
155
  agreed to in writing, Licensor provides the Work (and each
132
156
  Contributor provides its Contributions) on an "AS IS" BASIS,
@@ -136,6 +160,7 @@ licenses:
136
160
  PARTICULAR PURPOSE. You are solely responsible for determining the
137
161
  appropriateness of using or redistributing the Work and assume any
138
162
  risks associated with Your exercise of permissions under this License.
163
+
139
164
  8. Limitation of Liability. In no event and under no legal theory,
140
165
  whether in tort (including negligence), contract, or otherwise,
141
166
  unless required by applicable law (such as deliberate and grossly
@@ -147,6 +172,7 @@ licenses:
147
172
  work stoppage, computer failure or malfunction, or any and all
148
173
  other commercial damages or losses), even if such Contributor
149
174
  has been advised of the possibility of such damages.
175
+
150
176
  9. Accepting Warranty or Additional Liability. While redistributing
151
177
  the Work or Derivative Works thereof, You may choose to offer,
152
178
  and charge a fee for, acceptance of support, warranty, indemnity,
@@ -157,4 +183,31 @@ licenses:
157
183
  defend, and hold each Contributor harmless for any liability
158
184
  incurred by, or claims asserted against, such Contributor by reason
159
185
  of your accepting any such warranty or additional liability.
186
+
187
+ END OF TERMS AND CONDITIONS
188
+
189
+ APPENDIX: How to apply the Apache License to your work.
190
+
191
+ To apply the Apache License to your work, attach the following
192
+ boilerplate notice, with the fields enclosed by brackets "[]"
193
+ replaced with your own identifying information. (Don't include
194
+ the brackets!) The text should be enclosed in the appropriate
195
+ comment syntax for the file format. We also recommend that a
196
+ file or class name and description of purpose be included on the
197
+ same "printed page" as the copyright notice for easier
198
+ identification within third-party archives.
199
+
200
+ Copyright 2021 PlanetScale, Inc.
201
+
202
+ Licensed under the Apache License, Version 2.0 (the "License");
203
+ you may not use this file except in compliance with the License.
204
+ You may obtain a copy of the License at
205
+
206
+ http://www.apache.org/licenses/LICENSE-2.0
207
+
208
+ Unless required by applicable law or agreed to in writing, software
209
+ distributed under the License is distributed on an "AS IS" BASIS,
210
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
211
+ See the License for the specific language governing permissions and
212
+ limitations under the License.
160
213
  notices: []
@@ -1,180 +1,213 @@
1
1
  ---
2
2
  name: github.com/planetscale/sql-proxy/proxy
3
- version: v0.3.2
3
+ version: v0.8.0
4
4
  type: go
5
- summary:
5
+ summary:
6
6
  homepage: https://godoc.org/github.com/planetscale/sql-proxy/proxy
7
7
  license: apache-2.0
8
8
  licenses:
9
- - sources: LICENSE
9
+ - sources: sql-proxy/LICENSE
10
10
  text: |2
11
- Apache License
12
- Version 2.0, January 2004
13
- http://www.apache.org/licenses/
14
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
15
- 1. Definitions.
16
- "License" shall mean the terms and conditions for use, reproduction,
17
- and distribution as defined by Sections 1 through 9 of this document.
18
- "Licensor" shall mean the copyright owner or entity authorized by
19
- the copyright owner that is granting the License.
20
- "Legal Entity" shall mean the union of the acting entity and all
21
- other entities that control, are controlled by, or are under common
22
- control with that entity. For the purposes of this definition,
23
- "control" means (i) the power, direct or indirect, to cause the
24
- direction or management of such entity, whether by contract or
25
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
26
- outstanding shares, or (iii) beneficial ownership of such entity.
27
- "You" (or "Your") shall mean an individual or Legal Entity
28
- exercising permissions granted by this License.
29
- "Source" form shall mean the preferred form for making modifications,
30
- including but not limited to software source code, documentation
31
- source, and configuration files.
32
- "Object" form shall mean any form resulting from mechanical
33
- transformation or translation of a Source form, including but
34
- not limited to compiled object code, generated documentation,
35
- and conversions to other media types.
36
- "Work" shall mean the work of authorship, whether in Source or
37
- Object form, made available under the License, as indicated by a
38
- copyright notice that is included in or attached to the work
39
- (an example is provided in the Appendix below).
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
- "Contribution" shall mean any work of authorship, including
48
- the original version of the Work and any modifications or additions
49
- to that Work or Derivative Works thereof, that is intentionally
50
- submitted to Licensor for inclusion in the Work by the copyright owner
51
- or by an individual or Legal Entity authorized to submit on behalf of
52
- the copyright owner. For the purposes of this definition, "submitted"
53
- means any form of electronic, verbal, or written communication sent
54
- to the Licensor or its representatives, including but not limited to
55
- communication on electronic mailing lists, source code control systems,
56
- and issue tracking systems that are managed by, or on behalf of, the
57
- Licensor for the purpose of discussing and improving the Work, but
58
- excluding communication that is conspicuously marked or otherwise
59
- designated in writing by the copyright owner as "Not a Contribution."
60
- "Contributor" shall mean Licensor and any individual or Legal Entity
61
- on behalf of whom a Contribution has been received by Licensor and
62
- subsequently incorporated within the Work.
63
- 2. Grant of Copyright License. Subject to the terms and conditions of
64
- this License, each Contributor hereby grants to You a perpetual,
65
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
- copyright license to reproduce, prepare Derivative Works of,
67
- publicly display, publicly perform, sublicense, and distribute the
68
- Work and such Derivative Works in Source or Object form.
69
- 3. Grant of Patent License. Subject to the terms and conditions of
70
- this License, each Contributor hereby grants to You a perpetual,
71
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
72
- (except as stated in this section) patent license to make, have made,
73
- use, offer to sell, sell, import, and otherwise transfer the Work,
74
- where such license applies only to those patent claims licensable
75
- by such Contributor that are necessarily infringed by their
76
- Contribution(s) alone or by combination of their Contribution(s)
77
- with the Work to which such Contribution(s) was submitted. If You
78
- institute patent litigation against any entity (including a
79
- cross-claim or counterclaim in a lawsuit) alleging that the Work
80
- or a Contribution incorporated within the Work constitutes direct
81
- or contributory patent infringement, then any patent licenses
82
- granted to You under this License for that Work shall terminate
83
- as of the date such litigation is filed.
84
- 4. Redistribution. You may reproduce and distribute copies of the
85
- Work or Derivative Works thereof in any medium, with or without
86
- modifications, and in Source or Object form, provided that You
87
- meet the following conditions:
88
- (a) You must give any other recipients of the Work or
89
- Derivative Works a copy of this License; and
90
- (b) You must cause any modified files to carry prominent notices
91
- stating that You changed the files; and
92
- (c) You must retain, in the Source form of any Derivative Works
93
- that You distribute, all copyright, patent, trademark, and
94
- attribution notices from the Source form of the Work,
95
- excluding those notices that do not pertain to any part of
96
- the Derivative Works; and
97
- (d) If the Work includes a "NOTICE" text file as part of its
98
- distribution, then any Derivative Works that You distribute must
99
- include a readable copy of the attribution notices contained
100
- within such NOTICE file, excluding those notices that do not
101
- pertain to any part of the Derivative Works, in at least one
102
- of the following places: within a NOTICE text file distributed
103
- as part of the Derivative Works; within the Source form or
104
- documentation, if provided along with the Derivative Works; or,
105
- within a display generated by the Derivative Works, if and
106
- wherever such third-party notices normally appear. The contents
107
- of the NOTICE file are for informational purposes only and
108
- do not modify the License. You may add Your own attribution
109
- notices within Derivative Works that You distribute, alongside
110
- or as an addendum to the NOTICE text from the Work, provided
111
- that such additional attribution notices cannot be construed
112
- as modifying the License.
113
- You may add Your own copyright statement to Your modifications and
114
- may provide additional or different license terms and conditions
115
- for use, reproduction, or distribution of Your modifications, or
116
- for any such Derivative Works as a whole, provided Your use,
117
- reproduction, and distribution of the Work otherwise complies with
118
- the conditions stated in this License.
119
- 5. Submission of Contributions. Unless You explicitly state otherwise,
120
- any Contribution intentionally submitted for inclusion in the Work
121
- by You to the Licensor shall be under the terms and conditions of
122
- this License, without any additional terms or conditions.
123
- Notwithstanding the above, nothing herein shall supersede or modify
124
- the terms of any separate license agreement you may have executed
125
- with Licensor regarding such Contributions.
126
- 6. Trademarks. This License does not grant permission to use the trade
127
- names, trademarks, service marks, or product names of the Licensor,
128
- except as required for reasonable and customary use in describing the
129
- origin of the Work and reproducing the content of the NOTICE file.
130
- 7. Disclaimer of Warranty. Unless required by applicable law or
131
- agreed to in writing, Licensor provides the Work (and each
132
- Contributor provides its Contributions) on an "AS IS" BASIS,
133
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
134
- implied, including, without limitation, any warranties or conditions
135
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
136
- PARTICULAR PURPOSE. You are solely responsible for determining the
137
- appropriateness of using or redistributing the Work and assume any
138
- risks associated with Your exercise of permissions under this License.
139
- 8. Limitation of Liability. In no event and under no legal theory,
140
- whether in tort (including negligence), contract, or otherwise,
141
- unless required by applicable law (such as deliberate and grossly
142
- negligent acts) or agreed to in writing, shall any Contributor be
143
- liable to You for damages, including any direct, indirect, special,
144
- incidental, or consequential damages of any character arising as a
145
- result of this License or out of the use or inability to use the
146
- Work (including but not limited to damages for loss of goodwill,
147
- work stoppage, computer failure or malfunction, or any and all
148
- other commercial damages or losses), even if such Contributor
149
- has been advised of the possibility of such damages.
150
- 9. Accepting Warranty or Additional Liability. While redistributing
151
- the Work or Derivative Works thereof, You may choose to offer,
152
- and charge a fee for, acceptance of support, warranty, indemnity,
153
- or other liability obligations and/or rights consistent with this
154
- License. However, in accepting such obligations, You may act only
155
- on Your own behalf and on Your sole responsibility, not on behalf
156
- of any other Contributor, and only if You agree to indemnify,
157
- defend, and hold each Contributor harmless for any liability
158
- incurred by, or claims asserted against, such Contributor by reason
159
- of your accepting any such warranty or additional liability.
160
- END OF TERMS AND CONDITIONS
161
- APPENDIX: How to apply the Apache License to your work.
162
- To apply the Apache License to your work, attach the following
163
- boilerplate notice, with the fields enclosed by brackets "[]"
164
- replaced with your own identifying information. (Don't include
165
- the brackets!) The text should be enclosed in the appropriate
166
- comment syntax for the file format. We also recommend that a
167
- file or class name and description of purpose be included on the
168
- same "printed page" as the copyright notice for easier
169
- identification within third-party archives.
170
- Copyright 2021 PlanetScale, Inc.
171
- Licensed under the Apache License, Version 2.0 (the "License");
172
- you may not use this file except in compliance with the License.
173
- You may obtain a copy of the License at
174
- http://www.apache.org/licenses/LICENSE-2.0
175
- Unless required by applicable law or agreed to in writing, software
176
- distributed under the License is distributed on an "AS IS" BASIS,
177
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
178
- See the License for the specific language governing permissions and
179
- limitations under the License.
11
+
12
+ Apache License
13
+ Version 2.0, January 2004
14
+ http://www.apache.org/licenses/
15
+
16
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
17
+
18
+ 1. Definitions.
19
+
20
+ "License" shall mean the terms and conditions for use, reproduction,
21
+ and distribution as defined by Sections 1 through 9 of this document.
22
+
23
+ "Licensor" shall mean the copyright owner or entity authorized by
24
+ the copyright owner that is granting the License.
25
+
26
+ "Legal Entity" shall mean the union of the acting entity and all
27
+ other entities that control, are controlled by, or are under common
28
+ control with that entity. For the purposes of this definition,
29
+ "control" means (i) the power, direct or indirect, to cause the
30
+ direction or management of such entity, whether by contract or
31
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
32
+ outstanding shares, or (iii) beneficial ownership of such entity.
33
+
34
+ "You" (or "Your") shall mean an individual or Legal Entity
35
+ exercising permissions granted by this License.
36
+
37
+ "Source" form shall mean the preferred form for making modifications,
38
+ including but not limited to software source code, documentation
39
+ source, and configuration files.
40
+
41
+ "Object" form shall mean any form resulting from mechanical
42
+ transformation or translation of a Source form, including but
43
+ not limited to compiled object code, generated documentation,
44
+ and conversions to other media types.
45
+
46
+ "Work" shall mean the work of authorship, whether in Source or
47
+ Object form, made available under the License, as indicated by a
48
+ copyright notice that is included in or attached to the work
49
+ (an example is provided in the Appendix below).
50
+
51
+ "Derivative Works" shall mean any work, whether in Source or Object
52
+ form, that is based on (or derived from) the Work and for which the
53
+ editorial revisions, annotations, elaborations, or other modifications
54
+ represent, as a whole, an original work of authorship. For the purposes
55
+ of this License, Derivative Works shall not include works that remain
56
+ separable from, or merely link (or bind by name) to the interfaces of,
57
+ the Work and Derivative Works thereof.
58
+
59
+ "Contribution" shall mean any work of authorship, including
60
+ the original version of the Work and any modifications or additions
61
+ to that Work or Derivative Works thereof, that is intentionally
62
+ submitted to Licensor for inclusion in the Work by the copyright owner
63
+ or by an individual or Legal Entity authorized to submit on behalf of
64
+ the copyright owner. For the purposes of this definition, "submitted"
65
+ means any form of electronic, verbal, or written communication sent
66
+ to the Licensor or its representatives, including but not limited to
67
+ communication on electronic mailing lists, source code control systems,
68
+ and issue tracking systems that are managed by, or on behalf of, the
69
+ Licensor for the purpose of discussing and improving the Work, but
70
+ excluding communication that is conspicuously marked or otherwise
71
+ designated in writing by the copyright owner as "Not a Contribution."
72
+
73
+ "Contributor" shall mean Licensor and any individual or Legal Entity
74
+ on behalf of whom a Contribution has been received by Licensor and
75
+ subsequently incorporated within the Work.
76
+
77
+ 2. Grant of Copyright License. Subject to the terms and conditions of
78
+ this License, each Contributor hereby grants to You a perpetual,
79
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
80
+ copyright license to reproduce, prepare Derivative Works of,
81
+ publicly display, publicly perform, sublicense, and distribute the
82
+ Work and such Derivative Works in Source or Object form.
83
+
84
+ 3. Grant of Patent License. Subject to the terms and conditions of
85
+ this License, each Contributor hereby grants to You a perpetual,
86
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
87
+ (except as stated in this section) patent license to make, have made,
88
+ use, offer to sell, sell, import, and otherwise transfer the Work,
89
+ where such license applies only to those patent claims licensable
90
+ by such Contributor that are necessarily infringed by their
91
+ Contribution(s) alone or by combination of their Contribution(s)
92
+ with the Work to which such Contribution(s) was submitted. If You
93
+ institute patent litigation against any entity (including a
94
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
95
+ or a Contribution incorporated within the Work constitutes direct
96
+ or contributory patent infringement, then any patent licenses
97
+ granted to You under this License for that Work shall terminate
98
+ as of the date such litigation is filed.
99
+
100
+ 4. Redistribution. You may reproduce and distribute copies of the
101
+ Work or Derivative Works thereof in any medium, with or without
102
+ modifications, and in Source or Object form, provided that You
103
+ meet the following conditions:
104
+
105
+ (a) You must give any other recipients of the Work or
106
+ Derivative Works a copy of this License; and
107
+
108
+ (b) You must cause any modified files to carry prominent notices
109
+ stating that You changed the files; and
110
+
111
+ (c) You must retain, in the Source form of any Derivative Works
112
+ that You distribute, all copyright, patent, trademark, and
113
+ attribution notices from the Source form of the Work,
114
+ excluding those notices that do not pertain to any part of
115
+ the Derivative Works; and
116
+
117
+ (d) If the Work includes a "NOTICE" text file as part of its
118
+ distribution, then any Derivative Works that You distribute must
119
+ include a readable copy of the attribution notices contained
120
+ within such NOTICE file, excluding those notices that do not
121
+ pertain to any part of the Derivative Works, in at least one
122
+ of the following places: within a NOTICE text file distributed
123
+ as part of the Derivative Works; within the Source form or
124
+ documentation, if provided along with the Derivative Works; or,
125
+ within a display generated by the Derivative Works, if and
126
+ wherever such third-party notices normally appear. The contents
127
+ of the NOTICE file are for informational purposes only and
128
+ do not modify the License. You may add Your own attribution
129
+ notices within Derivative Works that You distribute, alongside
130
+ or as an addendum to the NOTICE text from the Work, provided
131
+ that such additional attribution notices cannot be construed
132
+ as modifying the License.
133
+
134
+ You may add Your own copyright statement to Your modifications and
135
+ may provide additional or different license terms and conditions
136
+ for use, reproduction, or distribution of Your modifications, or
137
+ for any such Derivative Works as a whole, provided Your use,
138
+ reproduction, and distribution of the Work otherwise complies with
139
+ the conditions stated in this License.
140
+
141
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
142
+ any Contribution intentionally submitted for inclusion in the Work
143
+ by You to the Licensor shall be under the terms and conditions of
144
+ this License, without any additional terms or conditions.
145
+ Notwithstanding the above, nothing herein shall supersede or modify
146
+ the terms of any separate license agreement you may have executed
147
+ with Licensor regarding such Contributions.
148
+
149
+ 6. Trademarks. This License does not grant permission to use the trade
150
+ names, trademarks, service marks, or product names of the Licensor,
151
+ except as required for reasonable and customary use in describing the
152
+ origin of the Work and reproducing the content of the NOTICE file.
153
+
154
+ 7. Disclaimer of Warranty. Unless required by applicable law or
155
+ agreed to in writing, Licensor provides the Work (and each
156
+ Contributor provides its Contributions) on an "AS IS" BASIS,
157
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
158
+ implied, including, without limitation, any warranties or conditions
159
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
160
+ PARTICULAR PURPOSE. You are solely responsible for determining the
161
+ appropriateness of using or redistributing the Work and assume any
162
+ risks associated with Your exercise of permissions under this License.
163
+
164
+ 8. Limitation of Liability. In no event and under no legal theory,
165
+ whether in tort (including negligence), contract, or otherwise,
166
+ unless required by applicable law (such as deliberate and grossly
167
+ negligent acts) or agreed to in writing, shall any Contributor be
168
+ liable to You for damages, including any direct, indirect, special,
169
+ incidental, or consequential damages of any character arising as a
170
+ result of this License or out of the use or inability to use the
171
+ Work (including but not limited to damages for loss of goodwill,
172
+ work stoppage, computer failure or malfunction, or any and all
173
+ other commercial damages or losses), even if such Contributor
174
+ has been advised of the possibility of such damages.
175
+
176
+ 9. Accepting Warranty or Additional Liability. While redistributing
177
+ the Work or Derivative Works thereof, You may choose to offer,
178
+ and charge a fee for, acceptance of support, warranty, indemnity,
179
+ or other liability obligations and/or rights consistent with this
180
+ License. However, in accepting such obligations, You may act only
181
+ on Your own behalf and on Your sole responsibility, not on behalf
182
+ of any other Contributor, and only if You agree to indemnify,
183
+ defend, and hold each Contributor harmless for any liability
184
+ incurred by, or claims asserted against, such Contributor by reason
185
+ of your accepting any such warranty or additional liability.
186
+
187
+ END OF TERMS AND CONDITIONS
188
+
189
+ APPENDIX: How to apply the Apache License to your work.
190
+
191
+ To apply the Apache License to your work, attach the following
192
+ boilerplate notice, with the fields enclosed by brackets "[]"
193
+ replaced with your own identifying information. (Don't include
194
+ the brackets!) The text should be enclosed in the appropriate
195
+ comment syntax for the file format. We also recommend that a
196
+ file or class name and description of purpose be included on the
197
+ same "printed page" as the copyright notice for easier
198
+ identification within third-party archives.
199
+
200
+ Copyright 2021 PlanetScale, Inc.
201
+
202
+ Licensed under the Apache License, Version 2.0 (the "License");
203
+ you may not use this file except in compliance with the License.
204
+ You may obtain a copy of the License at
205
+
206
+ http://www.apache.org/licenses/LICENSE-2.0
207
+
208
+ Unless required by applicable law or agreed to in writing, software
209
+ distributed under the License is distributed on an "AS IS" BASIS,
210
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
211
+ See the License for the specific language governing permissions and
212
+ limitations under the License.
180
213
  notices: []