Skip to content

Commit 990cf3f

Browse files
committed
DOCS-535 css edits sql mapping
1 parent 5023552 commit 990cf3f

File tree

5 files changed

+56
-92
lines changed

5 files changed

+56
-92
lines changed

source/includes/table-sql-to-mongo-insert-examples.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ sql1: |
1616
1717
.. code-block:: sql
1818
19-
INSERT INTO users(user_id,
20-
age,
21-
status)
19+
INSERT INTO users(user_id,
20+
age,
21+
status)
2222
VALUES ("bcd001",
2323
45,
2424
"A")
2525
mongo1: |
2626
.. code-block:: javascript
2727
:emphasize-lines: 1-5
2828
29-
db.users.insert( {
30-
user_id: "bcd001",
31-
age: 45,
32-
status: "A"
29+
db.users.insert( {
30+
user_id: "bcd001",
31+
age: 45,
32+
status: "A"
3333
} )
3434
ref1: |
3535
See :method:`insert() <db.collection.insert()>`

source/includes/table-sql-to-mongo-schema-examples.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ ref4: |
113113
sql5: |
114114
.. code-block:: sql
115115
116-
CREATE INDEX idx_user_id_asc_age_desc
117-
ON users(name, age DESC)
116+
CREATE INDEX
117+
idx_user_id_asc_age_desc
118+
ON users(user_id, age DESC)
118119
mongo5: |
119120
.. code-block:: javascript
120121
:emphasize-lines: 1

source/reference/sql-comparison.txt

Lines changed: 28 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,25 @@ SQL to MongoDB Mapping Chart
77
Executables
88
-----------
99

10-
The following table presents a quick reference to the MySQL/Oracle
11-
executables and the corresponding MongoDB executables.
10+
The following table presents the MySQL/Oracle executables and the
11+
corresponding MongoDB executables.
1212

1313
.. include:: /includes/table-sql-to-mongo-executables.rst
1414

1515
Terminology/Concepts
1616
--------------------
1717

18-
The following table presents a quick reference of the various SQL
19-
terminology and concepts and the corresponding MongoDB terminology and
20-
concepts.
18+
The following table presents the various SQL terminology and concepts
19+
and the corresponding MongoDB terminology and concepts.
2120

2221
.. include:: /includes/table-sql-to-mongo-terms.rst
2322

2423
Examples
2524
--------
2625

27-
The following table presents a quick reference of the various SQL
28-
statements and the corresponding MongoDB statements. The examples in
29-
the table assume the following conditions:
26+
The following table presents the various SQL statements and the
27+
corresponding MongoDB statements. The examples in the table assume the
28+
following conditions:
3029

3130
- The SQL examples assume a table ``users``.
3231

@@ -42,47 +41,43 @@ the table assume the following conditions:
4241
status: 'A'
4342
}
4443

45-
Create and Alter Table
46-
~~~~~~~~~~~~~~~~~~~~~~
44+
Create and Alter
45+
~~~~~~~~~~~~~~~~
4746

48-
The following table presents a quick reference of the various SQL
49-
statements related to table-level actions and the corresponding MongoDB
50-
statements.
47+
The following table presents the various SQL statements related to
48+
table-level actions and the corresponding MongoDB statements.
5149

5250
.. include:: /includes/table-sql-to-mongo-schema-examples.rst
5351

54-
Insert into Table
55-
~~~~~~~~~~~~~~~~~
52+
Insert
53+
~~~~~~
5654

57-
The following table presents a quick reference of the various SQL
58-
statements related to inserting records into tables and the
59-
corresponding MongoDB statements.
55+
The following table presents the various SQL statements related to
56+
inserting records into tables and the corresponding MongoDB statements.
6057

6158
.. include:: /includes/table-sql-to-mongo-insert-examples.rst
6259

63-
Select from Table
64-
~~~~~~~~~~~~~~~~~
60+
Select
61+
~~~~~~
6562

66-
The following table presents a quick reference of the various SQL
67-
statements related to reading records from tables and the corresponding
68-
MongoDB statements.
63+
The following table presents the various SQL statements related to
64+
reading records from tables and the corresponding MongoDB statements.
6965

7066
.. include:: /includes/table-sql-to-mongo-select-examples.rst
7167

72-
Update Records in Table
73-
~~~~~~~~~~~~~~~~~~~~~~~
68+
Update Records
69+
~~~~~~~~~~~~~~
7470

75-
The following table presents a quick reference of the various SQL
76-
statements related to updating existing records in tables and the
77-
corresponding MongoDB statements.
71+
The following table presents the various SQL statements related to
72+
updating existing records in tables and the corresponding MongoDB
73+
statements.
7874

7975
.. include:: /includes/table-sql-to-mongo-update-examples.rst
8076

81-
Delete Records from Table
82-
~~~~~~~~~~~~~~~~~~~~~~~~~
77+
Delete Records
78+
~~~~~~~~~~~~~~
8379

84-
The following table presents a quick reference of the various SQL
85-
statements related to deleting records from tables and the
86-
corresponding MongoDB statements.
80+
The following table presents the various SQL statements related to
81+
deleting records from tables and the corresponding MongoDB statements.
8782

8883
.. include:: /includes/table-sql-to-mongo-delete-examples.rst

themes/epub_mongodb/static/epub.css

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -392,45 +392,29 @@ div.highlight-javascript>div.highlight>pre>span.hll>span.nx {
392392
font-weight: bold;
393393
}
394394

395-
/* Specific to the SQL to ... Mapping pages -- Begin */
395+
/* No Longer just Specific to the SQL to ... Mapping pages -- Begin */
396396

397-
div#sql-to-aggregation-framework-mapping-chart td pre,
398-
div#sql-to-mongo-mapping-chart td pre {
397+
div td pre {
399398
border: none;
400399
-webkit-box-shadow: none;
401400
-moz-box-shadow: none;
402401
margin: 0px;
403-
padding: 5px;
402+
padding-top: 0px;
403+
padding-right: 8px;
404404
background-color: transparent;
405405
}
406406

407-
div#sql-to-aggregation-framework-mapping-chart table.docutils,
408-
div#sql-to-mongo-mapping-chart table.docutils {
409-
border-collapse:collapse;
410-
border:1px solid black;
411-
}
412-
413-
div#sql-to-aggregation-framework-mapping-chart table.docutils>colgroup>col,
414-
div#sql-to-mongo-mapping-chart table.docutils>colgroup>col {
415-
border-collapse:collapse;
416-
border-left:1px solid black;
407+
table.docutils td{
408+
padding: 8px;
417409
}
418410

419-
div#sql-to-aggregation-framework-mapping-chart table.docutils>thead th.head,
420-
div#sql-to-mongo-mapping-chart table.docutils>thead th.head{
411+
table.docutils>thead th.head{
421412
padding-top: 5px;
422413
padding-bottom: 5px;
423-
background-color: #F7F2E0;
414+
background-color: #F3F4EB;
424415
}
425416

426-
div#sql-to-mongo-mapping-chart div#examples.section table.docutils {
427-
width: 85%;
428-
}
429-
430-
div#sql-to-mongo-mapping-chart div#examples.section table.docutils>colgroup>col:first-child {
431-
width: 33%;
432-
}
433-
/* Specific to the SQL to ... Mapping page -- End */
417+
/* No longer just Specific to the SQL to ... Mapping page -- End */
434418

435419
/* -- math display ---------------------------------------------------------- */
436420

themes/mongodb/static/mongodb-docs.css_t

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -319,45 +319,29 @@ div.highlight-javascript>div.highlight>pre>span.hll>span.nx {
319319
font-weight: bold;
320320
}
321321

322-
/* Specific to the SQL to ... Mapping pages -- Begin */
322+
/* No Longer just Specific to the SQL to ... Mapping pages -- Begin */
323323

324-
div#sql-to-aggregation-framework-mapping-chart td pre,
325-
div#sql-to-mongo-mapping-chart td pre {
324+
div td pre {
326325
border: none;
327326
-webkit-box-shadow: none;
328327
-moz-box-shadow: none;
329328
margin: 0px;
330-
padding: 5px;
329+
padding-top: 0px;
330+
padding-right: 8px;
331331
background-color: transparent;
332332
}
333333

334-
div#sql-to-aggregation-framework-mapping-chart table.docutils,
335-
div#sql-to-mongo-mapping-chart table.docutils {
336-
border-collapse:collapse;
337-
border:1px solid black;
334+
table.docutils td{
335+
padding: 8px;
338336
}
339337

340-
div#sql-to-aggregation-framework-mapping-chart table.docutils>colgroup>col,
341-
div#sql-to-mongo-mapping-chart table.docutils>colgroup>col {
342-
border-collapse:collapse;
343-
border-left:1px solid black;
344-
}
345-
346-
div#sql-to-aggregation-framework-mapping-chart table.docutils>thead th.head,
347-
div#sql-to-mongo-mapping-chart table.docutils>thead th.head{
338+
table.docutils>thead th.head{
348339
padding-top: 5px;
349340
padding-bottom: 5px;
350-
background-color: #F7F2E0;
351-
}
352-
353-
div#sql-to-mongo-mapping-chart div#examples.section table.docutils {
354-
width: 85%;
341+
background-color: #F3F4EB;
355342
}
356343

357-
div#sql-to-mongo-mapping-chart div#examples.section table.docutils>colgroup>col:first-child {
358-
width: 33%;
359-
}
360-
/* Specific to the SQL to ... Mapping page -- End */
344+
/* No Longer Specific to the SQL to ... Mapping page -- End */
361345

362346
/* for main page to knock out the bullets & padding for main columns */
363347

0 commit comments

Comments
 (0)