nosql-tutorial 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +25 -14
- data/Rakefile +2 -2
- data/VERSION.yml +2 -2
- data/lib/public/doc/activerecord/000-activerecord.rb +77 -0
- data/lib/public/doc/activerecord/100-datamapper.rb +60 -0
- data/lib/public/doc/activerecord/activerecord_spec_helper.rb +13 -0
- data/lib/public/doc/activerecord/datamapper_spec_helper.rb +15 -0
- data/lib/public/doc/couchdb/blog-inline.rb +60 -0
- data/lib/public/doc/couchdb/collseq.rb +22 -0
- data/lib/public/doc/datamapper/000-sqlite3.rb +65 -0
- data/lib/public/doc/datamapper/001-ale-kino.rb +69 -0
- data/lib/public/doc/datamapper/010-postgres.rb +95 -0
- data/lib/public/doc/datamapper/bug.rb +25 -0
- data/lib/public/doc/mail/mail-20.rb +40 -0
- data/lib/public/doc/mail/mail-21.rb +62 -0
- data/lib/public/doc/mail/mail-gmail.rb +34 -0
- data/lib/public/doc/mail/private.yaml +7 -0
- data/lib/public/doc/mail/swistak.jpeg +0 -0
- data/lib/public/images/kumkwat.jpg +0 -0
- data/lib/public/stylesheets/nosql.css +8 -0
- data/lib/views/blogi.rdiscount +5 -0
- data/lib/views/couchdb-couchapp.rdiscount +83 -0
- data/lib/views/couchdb-crud.rdiscount +205 -0
- data/lib/views/couchdb-futon.rdiscount +116 -0
- data/lib/views/couchdb-ruby.rdiscount +53 -0
- data/lib/views/couchdb-views.rdiscount +162 -0
- data/lib/views/couchdb.rdiscount +122 -0
- data/lib/views/main.rdiscount +55 -12
- data/lib/views/summary.rdiscount +52 -3
- data/lib/views/zadania.rdiscount +9 -0
- metadata +30 -6
data/lib/views/main.rdiscount
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# Utrwalanie danych via NoSQL
|
2
2
|
|
3
3
|
<blockquote>
|
4
4
|
{%= image_tag "/images/conan_doyle.jpg", :alt => "[Sir Arthur Conan Doyle]" %}
|
@@ -10,8 +10,20 @@
|
|
10
10
|
<p class="author">— Sir Arthur Conan Doyle</p>
|
11
11
|
</blockquote>
|
12
12
|
|
13
|
+
NoSQL można rozszyfrować jako ***Not only SQL***.
|
14
|
+
Termin ten po raz pierwszy się pojawił na początku roku 2009
|
15
|
+
([wikipedia](http://en.wikipedia.org/wiki/NoSQL)).
|
16
|
+
|
13
17
|
Na początek dwa cytaty.
|
14
18
|
|
19
|
+
[K. Haines][key-value stores part 1]:
|
20
|
+
„Applications, whether web apps, simple dynamic websites or command
|
21
|
+
line apps, frequently need some sort of persistent data store. As a
|
22
|
+
result, databases have become ubiquitous on modern systems, and
|
23
|
+
because of this chicken and egg relationship, programmers will often
|
24
|
+
habitually reach for a relational database when the project only calls
|
25
|
+
for a way to persist data.”
|
26
|
+
|
15
27
|
[L. Carlson, L. Richardson][ruby receptury]:
|
16
28
|
Wszyscy chcą pozostawić po sobie coś trwałego. […]
|
17
29
|
Każdy program, który piszemy, pozostawia jakiś ślad swojego działania
|
@@ -24,24 +36,55 @@ poprzednia sesja. **Istnieje wiele sposobów takiego
|
|
24
36
|
*utrwalania danych*, zarówno bardzo prostych, jak i wielce
|
25
37
|
skomplikowanych.**
|
26
38
|
|
27
|
-
[K. Haines][key-value stores part 1]:
|
28
|
-
„Applications, whether web apps, simple dynamic websites or command
|
29
|
-
line apps, frequently need some sort of persistent data store. As a
|
30
|
-
result, databases have become ubiquitous on modern systems, and
|
31
|
-
because of this chicken and egg relationship, programmers will often
|
32
|
-
habitually reach for a relational database when the project only calls
|
33
|
-
for a way to persist data.”
|
34
|
-
|
35
39
|
## Notatki do wykładów
|
36
40
|
|
37
|
-
1. {%= link_to "
|
41
|
+
1. {%= link_to "Info", "/summary" %}
|
42
|
+
1. {%= link_to "CouchDB – Zaczynamy", "/couchdb" %}
|
43
|
+
1. {%= link_to "CouchDB – CRUD", "/couchdb-crud" %}
|
44
|
+
1. {%= link_to "CouchDB – Futon", "/couchdb-futon" %}
|
45
|
+
1. {%= link_to "CouchDB – Widoki", "/couchdb-views" %}
|
46
|
+
1. {%= link_to "CouchDB – CouchApp", "/couchdb-couchapp" %}
|
47
|
+
1. {%= link_to "CouchDB – Ruby", "/couchdb-ruby" %}
|
48
|
+
1. {%= link_to "Datamapper dla SQL i noSQL", "/datamapper" %}
|
49
|
+
1. {%= link_to "MongoDB", "/mongodb" %}
|
50
|
+
|
51
|
+
### Laboratorium
|
52
|
+
|
53
|
+
* {%= link_to "Blogi", "/blogi" %}
|
54
|
+
|
55
|
+
<!--
|
56
|
+
* {%= link_to "Zadania", "/zadania" %}
|
38
57
|
1. {%= link_to "Wprowadzenie do języka Ruby", "/ruby-intro" %}
|
39
58
|
1. {%= link_to "Serializacja danych", "/serializacja-danych" %}
|
40
59
|
1. {%= link_to "Redis datastore", "/redis" %}
|
41
60
|
1. {%= link_to "ORM na przykładzie ActiveRecord", "/ar" %}
|
42
|
-
|
43
|
-
|
61
|
+
-->
|
62
|
+
|
63
|
+
|
64
|
+
## Linki
|
65
|
+
|
66
|
+
Podstawowe:
|
67
|
+
|
68
|
+
* [HTML5](http://html5.org/) – najważniejsze linki
|
69
|
+
* [HTML5 Draft](http://www.whatwg.org/specs/web-apps/current-work/multipage/)
|
70
|
+
* [CSS3.info](http://www.css3.info/)
|
71
|
+
* [CSS3 Cheat Sheet](http://www.smashingmagazine.com/2009/07/13/css-3-cheat-sheet-pdf/)
|
72
|
+
* [jQuery](http://jquery.com/), [JS Bin](http://jsbin.com/)
|
73
|
+
|
74
|
+
CouchDB:
|
75
|
+
|
76
|
+
* [CouchDB Wiki][couchdb wiki].
|
77
|
+
* [Reference](http://wiki.apache.org/couchdb/Reference) – API, Views, Configuration, Security
|
78
|
+
* [Basics](http://wiki.apache.org/couchdb/Basics) – C, Ruby, Javascript…
|
79
|
+
* [HowTo Guides](http://wiki.apache.org/couchdb/How-To_Guides)
|
80
|
+
* Podręcznik [CouchDB: The Definitive Guide][couchdb]
|
81
|
+
|
82
|
+
MongoDB:
|
44
83
|
|
84
|
+
* Marek Kołodziejczyk.
|
85
|
+
[Rails + MongoDB resources](http://code-fu.pl/2010/01/17/rails-mongodb-resources.html)
|
45
86
|
|
87
|
+
[couchdb]: http://books.couchdb.org/relax/ "CouchDB: The Definitive Guide"
|
88
|
+
[couchdb wiki]: http://wiki.apache.org/couchdb/ "Couchdb Wiki"
|
46
89
|
[key-value stores part 1]: http://www.engineyard.com/blog/2009/key-value-stores-in-ruby/ "Kirk Haines, Key-Value Stores in Ruby: Part 1"
|
47
90
|
[ruby receptury]: http://helion.pl/ksiazki/rubyre.htm "Ruby Receptury, Bazy danych i trwałość obiektów."
|
data/lib/views/summary.rdiscount
CHANGED
@@ -1,14 +1,59 @@
|
|
1
1
|
#### {% title "Rozpiska wykładów" %}
|
2
2
|
|
3
|
-
#
|
3
|
+
# Rozpiska wykładów
|
4
|
+
|
5
|
+
<blockquote>
|
6
|
+
<h2>Kot pewnego guru</h2>
|
7
|
+
<p>
|
8
|
+
Co wieczór, gdy guru zasiadał do odprawiania nabożeństwa
|
9
|
+
łaził tamtędy kot należący do aśramu,
|
10
|
+
rozpraszając wiernych.
|
11
|
+
Dlatego guru polecił, by związywać kota
|
12
|
+
podczas nabożeństwa.
|
13
|
+
</p>
|
14
|
+
<p>
|
15
|
+
Długo po śmierci guru
|
16
|
+
nadal związywano kota
|
17
|
+
podczas wieczornego nabożeństwa,
|
18
|
+
a gdy kot w końcu umarł,
|
19
|
+
sprowadzono do aśramu innego kota,
|
20
|
+
aby móc go związywać
|
21
|
+
podczas wieczornego nabożeństwa.
|
22
|
+
</p>
|
23
|
+
Wieki później uczniowie guru
|
24
|
+
pisali wielce uczone traktaty
|
25
|
+
o istotnej roli kota
|
26
|
+
w należytym odprawianiu nabożeństwa.
|
27
|
+
<p>
|
28
|
+
</blockquote>
|
29
|
+
|
30
|
+
Plany podano tylko orientacyjnie, bez szczegółów.
|
4
31
|
|
5
32
|
## Wykład I
|
6
33
|
|
7
|
-
*
|
34
|
+
* NOSQL na przykładzie CouchDB
|
8
35
|
|
9
36
|
## Wykład II
|
10
37
|
|
11
|
-
*
|
38
|
+
* CouchDB: CRUD oraz Futton
|
39
|
+
|
40
|
+
## Wykład III
|
41
|
+
|
42
|
+
* CouchApp
|
43
|
+
|
44
|
+
## Wykład IV
|
45
|
+
|
46
|
+
* Couchrest
|
47
|
+
|
48
|
+
## Wykład V
|
49
|
+
|
50
|
+
* NoSQL i Datamapper
|
51
|
+
|
52
|
+
## Wykład VI i VII
|
53
|
+
|
54
|
+
* Prezentacje
|
55
|
+
|
56
|
+
<!--
|
12
57
|
|
13
58
|
## Wykład III
|
14
59
|
|
@@ -30,3 +75,7 @@
|
|
30
75
|
## Różne rzeczy
|
31
76
|
|
32
77
|
TODO
|
78
|
+
|
79
|
+
Serializacja danych: Marshall, PStore, CSV, YAML
|
80
|
+
|
81
|
+
-->
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nosql-tutorial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wlodek Bzyl
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-02-18 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -28,9 +28,9 @@ dependencies:
|
|
28
28
|
version_requirement:
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.9.4
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rdiscount
|
@@ -68,9 +68,9 @@ dependencies:
|
|
68
68
|
version_requirement:
|
69
69
|
version_requirements: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
|
-
- - "
|
71
|
+
- - "="
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version:
|
73
|
+
version: 0.9.4.0
|
74
74
|
version:
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: sinatra-static-assets
|
@@ -96,11 +96,26 @@ files:
|
|
96
96
|
- VERSION.yml
|
97
97
|
- lib/config.ru
|
98
98
|
- lib/nosql.rb
|
99
|
+
- lib/public/doc/activerecord/000-activerecord.rb
|
100
|
+
- lib/public/doc/activerecord/100-datamapper.rb
|
101
|
+
- lib/public/doc/activerecord/activerecord_spec_helper.rb
|
102
|
+
- lib/public/doc/activerecord/datamapper_spec_helper.rb
|
103
|
+
- lib/public/doc/couchdb/blog-inline.rb
|
104
|
+
- lib/public/doc/couchdb/collseq.rb
|
105
|
+
- lib/public/doc/datamapper/000-sqlite3.rb
|
106
|
+
- lib/public/doc/datamapper/001-ale-kino.rb
|
107
|
+
- lib/public/doc/datamapper/010-postgres.rb
|
108
|
+
- lib/public/doc/datamapper/bug.rb
|
99
109
|
- lib/public/doc/mail/body.txt
|
100
110
|
- lib/public/doc/mail/mail-00.rb
|
101
111
|
- lib/public/doc/mail/mail-01.rb
|
102
112
|
- lib/public/doc/mail/mail-10.rb
|
113
|
+
- lib/public/doc/mail/mail-20.rb
|
114
|
+
- lib/public/doc/mail/mail-21.rb
|
115
|
+
- lib/public/doc/mail/mail-gmail.rb
|
103
116
|
- lib/public/doc/mail/motylek.jpeg
|
117
|
+
- lib/public/doc/mail/private.yaml
|
118
|
+
- lib/public/doc/mail/swistak.jpeg
|
104
119
|
- lib/public/doc/plain-text-files/contacts.yaml
|
105
120
|
- lib/public/doc/plain-text-files/contacts_g.rb
|
106
121
|
- lib/public/doc/plain-text-files/contacts_g_test.rb
|
@@ -112,6 +127,7 @@ files:
|
|
112
127
|
- lib/public/images/conan_doyle.jpg
|
113
128
|
- lib/public/images/datamapper.png
|
114
129
|
- lib/public/images/datamapper.svg
|
130
|
+
- lib/public/images/kumkwat.jpg
|
115
131
|
- lib/public/stylesheets/fonts/Cyklop-Italic.otf
|
116
132
|
- lib/public/stylesheets/icons/cross.png
|
117
133
|
- lib/public/stylesheets/icons/doc.png
|
@@ -134,6 +150,13 @@ files:
|
|
134
150
|
- lib/public/stylesheets/src/shattered_mirror.png
|
135
151
|
- lib/public/stylesheets/uv.css
|
136
152
|
- lib/views/ar.rdiscount
|
153
|
+
- lib/views/blogi.rdiscount
|
154
|
+
- lib/views/couchdb-couchapp.rdiscount
|
155
|
+
- lib/views/couchdb-crud.rdiscount
|
156
|
+
- lib/views/couchdb-futon.rdiscount
|
157
|
+
- lib/views/couchdb-ruby.rdiscount
|
158
|
+
- lib/views/couchdb-views.rdiscount
|
159
|
+
- lib/views/couchdb.rdiscount
|
137
160
|
- lib/views/datamapper.rdiscount
|
138
161
|
- lib/views/layout.rdiscount
|
139
162
|
- lib/views/main.rdiscount
|
@@ -143,6 +166,7 @@ files:
|
|
143
166
|
- lib/views/serializacja-danych.rdiscount
|
144
167
|
- lib/views/skel.rdiscount
|
145
168
|
- lib/views/summary.rdiscount
|
169
|
+
- lib/views/zadania.rdiscount
|
146
170
|
has_rdoc: true
|
147
171
|
homepage: http://github.com/wbzyl/nosql
|
148
172
|
licenses: []
|