-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·356 lines (302 loc) · 12.9 KB
/
index.html
File metadata and controls
executable file
·356 lines (302 loc) · 12.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="assets/ico/favicon.ico">
<title>BedquiltDB</title>
<!-- Bootstrap core CSS -->
<link href="assets/css/bootstrap.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="assets/css/style.css" rel="stylesheet">
<link href="assets/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/default.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="assets/js/modernizr.js"></script>
</head>
<body>
<!-- Fixed navbar -->
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">BedquiltDB</a>
</div>
<div class="navbar-collapse collapse navbar-right">
<ul class="nav navbar-nav">
<li class=""><a href="https://bedquiltdb.readthedocs.io/en/latest/guide" target="_blank">GUIDE</a></li>
<li class=""><a href="https://bedquiltdb.readthedocs.io" target="_blank">DOCUMENTATION</a></li>
<!-- <li><a href="about.html">ABOUT</a></li> -->
<li><a href="http://pgxn.org/dist/bedquilt" target="_blank">PGXN</a></li>
<li><a href="https://github.com/BedquiltDB" target="_blank">SOURCE CODE</a></li>
<li><a href="/v2.html">ANNOUNCING VERSION 2</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<!-- *****************************************************************************************************************
HEADERWRAP
***************************************************************************************************************** -->
<div id="headerwrap">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 himg">
<img src="assets/img/bedquilt_logo_tile_2.png" class="img-responsive" style="width:380px;">
</div>
<div class="col-lg-8 col-lg-offset-2">
<h3><code>CREATE EXTENSION bedquilt;</code></h3>
<h1>A JSON doc-store built on PostgreSQL</h1>
<h5>BedquiltDB builds upon the rock-solid foundation of PostgreSQL</h5>
<h5> to provide a simple, developer-friendly NoSQL API.</h5>
<br/>
</div>
<div class="col-lg-8 col-lg-offset-2 himg">
<img src="assets/img/bq_example.gif" class="img-responsive">
</div>
</div><!-- /row -->
</div> <!-- /container -->
</div><!-- /headerwrap -->
<!-- *****************************************************************************************************************
SERVICE LOGOS
***************************************************************************************************************** -->
<div id="service">
<div class="container">
<div class="row centered">
<div class="col-md-4">
<i class="fa fa-database"></i>
<h4>The Best of Both Worlds</h4>
<p>BedquiltDB presents a simple NoSQL API to the developer, while persisting data to PostgreSQL. Enjoy straight-forward JSON persistence and querying, combined with the strengths of a relational database, such as field constraints and multi-document, multi-collection transactions</p>
<!-- <p><br/><a href="#" class="btn btn-theme">More Info</a></p> -->
</div>
<div class="col-md-4">
<i class="fa fa-code"></i>
<h4>Lots of Client Libraries</h4>
<p>BedquiltDB is implemented as a PostgreSQL extension, making it easy to create client libraries/drivers. Official drivers for Python, NodeJS and Clojure are already available.</p>
<!-- <p><br/><a href="#" class="btn btn-theme">More Info</a></p> -->
</div>
<div class="col-md-4">
<i class="fa fa-code-fork"></i>
<h4>Open Source</h4>
<p>BedquiltDB is open-source, under the BSD License. Contributions are, of course, more than welcome. Check out our code on <a href="https://github.com/BedquiltDB" target="_blank">Github</a>!</p>
<!-- <p><br/><a href="#" class="btn btn-theme">More Info</a></p> -->
</div>
</div>
</div><! --/container -->
</div><! --/service -->
<!-- *****************************************************************************************************************
MIDDLE CONTENT
***************************************************************************************************************** -->
<div class="container mtb">
<div class="row">
<h2 class="text-center">Examples</h2>
<br />
<div class="col-lg-6">
<div>
<h4>Python</h4>
<pre><code class="python">from pybedquilt import BedquiltClient
bq = BedquiltClient(dbname='bedquilt_test')
projects = bq['projects']
projects.add_constraints({
'description': {'$required': 1,
'$notnull': 1,
'$type': 'string'},
'tags': {'$required': 1,
'$type': 'array'}
})
projects.insert({
'_id': "BedquiltDB",
'description': "A ghastly hack.",
'quality': "pre-alpha",
'tags': ["json", "postgres", "api"]
})
early_projects = projects.find(
{'quality': 'pre-alpha'})
api_projects = projects.find(
{'tags': ['api']})
cool_project = projects.find_one_by_id('BedquiltDB')
</code></pre>
</div>
</div>
<div class="col-lg-6">
<div>
<h4>NodeJS</h4>
<pre><code class="javascript">let bq = require('bedquilt')
let BedquiltClient = bq.BedquiltClient;
BedquiltClient.connect('localhost', (err, client) => {
let tools = client.collection('tools');
tools.find({type: 'blunt'}, (err, results) => {
console.log(results);
});
});</code></pre>
<h4>SQL</h4>
<pre><code class="sql">select bq_insert(
'orders',
'{"_id": "2001515",
"customerId": "117176",
"items": ["orange_coat",
"socks",
"plastic_teeth"]}'
);
select bq_find(
'orders',
'{"customerId": "220011",
"items": ["socks"]}'
);
select bq_remove_one(
'orders',
'{"_id": "4401515"}'
);</code></pre>
</div>
</div>
</div>
</div>
<div class="container mtb">
<div class="row">
<div class="col-lg-4 col-lg-offset-1">
<h4>Roadmap</h4>
<div>
<ul class="extra-indent">
<li>Update, with partial modification of documents</li>
<li>Indexes to collection fields</li>
<li>Client transaction API</li>
<li>Collection namespaces</li>
<li>And much more!</li>
</ul>
</div>
<!-- <p><br/><a href="about.html" class="btn btn-theme">More Info</a></p> -->
</div>
<div class="col-lg-6">
<h4>Projects</h4>
<div class="hline"></div>
<p>
<a href="http://github.com/BedquiltDB/bedquilt-core">bedquilt-core</a> - The main PostgreSQL extension.
(<a href="http://bedquiltdb.readthedocs.org/en/latest">docs</a>)
</p>
<p>
<a href="http://github.com/BedquiltDB/pybedquilt">pybedquilt</a> - The official Python driver for BedquiltDB.
(<a href="http://pybedquilt.readthedocs.org/en/latest">docs</a>)
</p>
<p>
<a href="http://github.com/BedquiltDB/node-bedquilt">node-bedquilt</a> - The official Node.js driver for BedquiltDB.
(<a href="http://node-bedquilt.readthedocs.org/en/latest">docs</a>)
</p>
<p>
<a href="http://github.com/BedquiltDB/clj-bedquilt">clj-bedquilt</a> - The official Clojure driver for BedquiltDB.
(<a href="http://bedquiltdb.github.io/clj-bedquilt-docs/">docs</a>)
</p>
</div>
</div><! --/row -->
</div><! --/container -->
<!-- *****************************************************************************************************************
TESTIMONIALS
***************************************************************************************************************** -->
<!-- <div id="twrap">
<div class="container centered">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<i class="fa fa-comment-o"></i>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</p>
<h4><br/>Marcel Newman</h4>
<p>WEB DESIGNER - BLACKTIE.CO</p>
</div>
</div>
</div>
</div>-->
<!-- *****************************************************************************************************************
OUR CLIENTS
***************************************************************************************************************** -->
<div id="cwrap">
<div class="container">
<div class="row centered">
<h3>Get Started Now</h3>
<div class="col-lg-4 col-md-4 col-sm-4">
<h3>
<a href="https://bedquiltdb.readthedocs.io/en/latest/guide/">
Read The Documentation
</a>
</h3>
</div>
<div class="col-lg-4 col-md-4 col-sm-4">
<h3>
<a href="https://bedquiltdb.readthedocs.io/en/latest/guide/installation/">
Install The Extension
</a>
</h3>
</div>
<div class="col-lg-4 col-md-4 col-sm-4">
<h3>
<a href="https://github.com/BedquiltDB/bedquilt-core">
Get The Source Code
</a>
</h3>
</div>
</div><! --/row -->
</div><! --/container -->
</div><! --/cwrap -->
<!-- *****************************************************************************************************************
FOOTER
***************************************************************************************************************** -->
<div id="footerwrap">
<div class="container">
<div class="row">
<div class="col-lg-4">
<h4>About</h4>
<div class="hline-w"></div>
<p>BedquiltDB is a super-cool open source project.</p>
</div>
<div class="col-lg-4">
<h4>Social Links</h4>
<div class="hline-w"></div>
<p>
<a href="https://github.com/BedquiltDB"><i class="fa fa-github"> </i></a>
<a href="https://twitter.com/bedquiltdb"><i class="fa fa-twitter"> </i></a>
</p>
</div>
<div class="col-lg-4">
<h4>What's with the crazy name?</h4>
<div class="hline-w"></div>
<p>
Go play Kentucky Route Zero, then you'll get it.
</p>
</div>
</div><! --/row -->
</div><! --/container -->
</div><! --/footerwrap -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/retina-1.1.0.js"></script>
<script src="assets/js/jquery.hoverdir.js"></script>
<script src="assets/js/jquery.hoverex.min.js"></script>
<script src="assets/js/jquery.prettyPhoto.js"></script>
<script src="assets/js/jquery.isotope.min.js"></script>
<script src="assets/js/custom.js"></script>
<!-- GA-->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-84128833-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>