Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Commit 14da695

Browse files
committed
Bring back Google Analytics with Privacy Policy
1 parent 478d06b commit 14da695

File tree

5 files changed

+60
-10
lines changed

5 files changed

+60
-10
lines changed

rdbc-doc/docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
## What is rdbc?
1818

19-
rdbc is a SQL-level relational database connectivity API targeting Scala and
19+
rdbc is a SQL-level relational database access API targeting Scala and
2020
Java programming languages. The API is fully asynchronous and provides
2121
a possibility to leverage [Reactive Streams'](http://www.reactive-streams.org/)
2222
stream processing capabilities.
@@ -45,12 +45,12 @@ Following list outlines the goals of the API:
4545
and get results back. While it can be used directly it's also meant to
4646
provide a foundation for higher-level APIs like functional or object
4747
relational mapping libraries.
48-
48+
4949
## Non-goals
5050

5151
Following list outlines the areas that the API is not meant to cover.
5252

53-
1. **Provide a full type-safety.**
53+
1. **Will not provide a full type-safety.**
5454

5555
rdbc works on a SQL level, meaning that requests made to the database
5656
are strings. There is no additional layer that would ensure type-safety

rdbc-doc/docs/javascripts/extra.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
2+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
3+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
4+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
5+
6+
var gaID = 'UA-103140141-1';
7+
8+
ga('create', gaID, 'auto');
9+
ga('set', 'anonymizeIp', true);
10+
ga('send', 'pageview');
11+
12+
function gaOptout() {
13+
var disableStr = 'ga-disable-' + gaID;
14+
document.cookie = disableStr + '=true; domain=' + window.location.hostname + '; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/';
15+
window[disableStr] = true;
16+
}

rdbc-doc/docs/privacy.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!---
2+
! Copyright 2016-2017 rdbc contributors
3+
!
4+
! Licensed under the Apache License, Version 2.0 (the "License");
5+
! you may not use this file except in compliance with the License.
6+
! You may obtain a copy of the License at
7+
!
8+
! http://www.apache.org/licenses/LICENSE-2.0
9+
!
10+
! Unless required by applicable law or agreed to in writing, software
11+
! distributed under the License is distributed on an "AS IS" BASIS,
12+
! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
! See the License for the specific language governing permissions and
14+
! limitations under the License.
15+
-->
16+
17+
## Data collection
18+
19+
This site uses Google Analytics to collect information. No personally identifiable
20+
information is collected. This site uses Google Analytics IP address anonymization feature.
21+
22+
## Data processing
23+
24+
The site owner uses the collected data to understand how many people visit
25+
the site pages and where they came from.
26+
27+
## Opt-out from tracking
28+
29+
Click <a onclick="gaOptout(); alert('Opted out')">here</a> to opt-out of the
30+
tracking. This will create a cookie to remember the opt-out for your browser.

rdbc-doc/docs/scala/statements.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ to a database for execution along with arguments, if any. There are two types
2121
of statements in rdbc: template statements and executable statements. Template
2222
statements can't be executed right away. To execute them you first need to bind argument
2323
for every parameter they declare. When filled with arguments, template statements
24-
create executable statements. Statements in rdbc are a representation database engine's
25-
[prepared statements](https://en.wikipedia.org/wiki/Prepared_statement).
24+
create executable statements. Statements in rdbc are a representation of database
25+
engine's [prepared statements](https://en.wikipedia.org/wiki/Prepared_statement).
2626

2727
## Syntax
2828

@@ -169,9 +169,9 @@ def findUsersStmt(name: String): ExecutableStatement = {
169169
```
170170

171171
!!! tip "SQL injection safety"
172-
Important thing to understand is that when using `sql` interpolator you're still
173-
safe from creating SQL injection vulnerability. Even though it may look like
174-
that, parameter values are **not** passed in to the database as literals
172+
The important thing to understand is that when using `sql` interpolator you're still
173+
safe from SQL injection vulnerability. Even though it may look like
174+
that, parameter values are **not** passed to the database as literals
175175
concatenated with the rest of the SQL.
176176

177177
SQL parts created by `sql` interpolator can be concatenated in the same way you
@@ -460,8 +460,8 @@ Creating `Publisher` instances is out of scope of this manual, for details pleas
460460
refer to documentation of Reactive Streams compatible libraries that are built to
461461
facilitate this, like
462462
[Akka stream](http://doc.akka.io/docs/akka/current/scala/stream/index.html) or
463-
[Monix](https://monix.io/). Examples below use simple streams backed by in
464-
memory collections.
463+
[Monix](https://monix.io/). Examples below use simple streams backed by in-memory
464+
collections.
465465

466466

467467
Streaming named arguments with Akka:

rdbc-doc/mkdocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pages:
1515
- Java API user guide: java/java.md
1616
- Drivers: drivers.md
1717
- Examples: examples.md
18+
- Privacy policy: privacy.md
1819
theme:
1920
name: material
2021
palette:
@@ -43,3 +44,6 @@ markdown_extensions:
4344

4445
extra_css:
4546
- 'css/extra.css'
47+
48+
extra_javascript:
49+
- 'javascripts/extra.js'

0 commit comments

Comments
 (0)