Skip to content

Commit ce5d161

Browse files
committed
Continuation of Adminstration proofreading
1 parent 3dace38 commit ce5d161

20 files changed

+343
-300
lines changed

Console-Command-Browse-Cluster.md

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
1-
# Console - `BROWSE CLUSTER`
2-
3-
Displays all records associated with the given cluster.
4-
5-
**Syntax:**
6-
7-
```
8-
BROWSE CLUSTER <cluster-name>
9-
```
10-
11-
- **`<cluster-name>`** Defines the cluster for the records you want to display.
12-
13-
**Example:**
14-
15-
- Browse records associated with the cluster `City`:
16-
17-
<pre>
18-
orientdb> <code class="lang-sql userinput">BROWSE CLUSTER City</code>
19-
20-
----+------+-------------------
21-
# | RID | NAME
22-
----+------+-------------------
23-
0 | -6:0 | Rome
24-
1 | -6:1 | London
25-
2 | -6:2 | Honolulu
26-
----+------+-------------------
27-
</pre>
28-
29-
>For more information on other commands, see [Console Commands](Console-Commands.md).
30-
1+
<!-- proofread 2015-01-07 SAM -->
2+
3+
# Console - `BROWSE CLUSTER`
4+
5+
Displays all records associated with the given cluster.
6+
7+
**Syntax:**
8+
9+
```
10+
BROWSE CLUSTER <cluster-name>
11+
```
12+
13+
- **`<cluster-name>`** Defines the cluster for the records you want to display.
14+
15+
**Example:**
16+
17+
- Browse records associated with the cluster `City`:
18+
19+
<pre>
20+
orientdb> <code class="lang-sql userinput">BROWSE CLUSTER City</code>
21+
22+
----+------+-------------------
23+
# | RID | NAME
24+
----+------+-------------------
25+
0 | -6:0 | Rome
26+
1 | -6:1 | London
27+
2 | -6:2 | Honolulu
28+
----+------+-------------------
29+
</pre>
30+
31+
>For more information on other commands, see [Console Commands](Console-Commands.md).
32+

Console-Command-Classes.md

Lines changed: 44 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,44 @@
1-
# Console - `LIST CLASSES`
2-
3-
Displays all configured classes in the current database.
4-
5-
**Syntax:**
6-
7-
- Long Syntax:
8-
9-
```
10-
LIST CLASSES
11-
```
12-
13-
- Short Syntax:
14-
15-
```
16-
CLASSES
17-
```
18-
19-
**Example**
20-
21-
- List current classes on the database:
22-
23-
<pre>
24-
orientdb> <code class="lang-sql userinput">LIST CLASSES</code>
25-
26-
CLASSES
27-
-------------+------+-------------+-----------
28-
NAME | ID | CLUSTERS | ELEMENTS
29-
-------------+------+-------------+-----------
30-
Person | 0 | person | 7
31-
Animal | 1 | animal | 5
32-
AnimalRace | 2 | AnimalRace | 0
33-
AnimalType | 3 | AnimalType | 1
34-
OrderItem | 4 | OrderItem | 0
35-
Order | 5 | Order | 0
36-
City | 6 | City | 3
37-
-------------+------+-------------+-----------
38-
TOTAL 16
39-
-----------------------------------------------
40-
</pre>
41-
42-
>For more information on other commands, see [Console Commands](Console-Commands.md).
1+
<!-- proofread 2015-01-07 SAM -->
2+
3+
# Console - `LIST CLASSES`
4+
5+
Displays all configured classes in the current database.
6+
7+
**Syntax:**
8+
9+
- Long Syntax:
10+
11+
```
12+
LIST CLASSES
13+
```
14+
15+
- Short Syntax:
16+
17+
```
18+
CLASSES
19+
```
20+
21+
**Example**
22+
23+
- List current classes in the database:
24+
25+
<pre>
26+
orientdb> <code class="lang-sql userinput">LIST CLASSES</code>
27+
28+
CLASSES
29+
-------------+------+-------------+-----------
30+
NAME | ID | CLUSTERS | ELEMENTS
31+
-------------+------+-------------+-----------
32+
Person | 0 | person | 7
33+
Animal | 1 | animal | 5
34+
AnimalRace | 2 | AnimalRace | 0
35+
AnimalType | 3 | AnimalType | 1
36+
OrderItem | 4 | OrderItem | 0
37+
Order | 5 | Order | 0
38+
City | 6 | City | 3
39+
-------------+------+-------------+-----------
40+
TOTAL 16
41+
-----------------------------------------------
42+
</pre>
43+
44+
>For more information on other commands, see [Console Commands](Console-Commands.md).

Console-Command-Cluster-Status.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- proofread 2015-01-07 SAM -->
2+
13
# Console - `CLUSTER STATUS`
24

35
Displays the status of the cluster in distributed configuration.
@@ -39,4 +41,4 @@ CLUSTER STATUS
3941
}</code>
4042
</pre>
4143

42-
This is a command of the Orient console. To know all the commands go to [Console-Commands](Console-Commands.md).
44+
>For more information on other commands, see [Console Commands](Console-Commands.md).

Console-Command-Clusters.md

Lines changed: 49 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,49 @@
1-
# Console - `LIST CLUSTERS`
2-
3-
Displays all configured clusters in the current database.
4-
5-
**Syntax:**
6-
7-
- Long Syntax:
8-
9-
```
10-
LIST CLUSTERS
11-
```
12-
13-
- Short Syntax:
14-
15-
```
16-
CLUSTERS
17-
```
18-
19-
**Example:**
20-
21-
- List current clusters on database:
22-
23-
<pre>
24-
orientdb> <code class="lang-sql userinput">LIST CLUSTERS</code>
25-
26-
CLUSTERS
27-
-------------+------+-----------+-----------
28-
NAME | ID | TYPE | ELEMENTS
29-
-------------+------+-----------+-----------
30-
metadata | 0 | Physical | 11
31-
index | 1 | Physical | 0
32-
default | 2 | Physical | 779
33-
csv | 3 | Physical | 1000
34-
binary | 4 | Physical | 1001
35-
person | 5 | Physical | 7
36-
animal | 6 | Physical | 5
37-
animalrace | -2 | Logical | 0
38-
animaltype | -3 | Logical | 1
39-
orderitem | -4 | Logical | 0
40-
order | -5 | Logical | 0
41-
city | -6 | Logical | 3
42-
-------------+------+-----------+-----------
43-
TOTAL 2807
44-
--------------------------------------------
45-
</pre>
46-
47-
>For information on creating new clusters in the current database, see the [`CREATE CLUSTER`](Console-Command-Create-Cluster.md) command. For more information on other commands, see [Console Commands](Console-Commands.md).
1+
<!-- proofread 2015-01-07 SAM -->
2+
3+
# Console - `LIST CLUSTERS`
4+
5+
Displays all configured clusters in the current database.
6+
7+
**Syntax:**
8+
9+
- Long Syntax:
10+
11+
```
12+
LIST CLUSTERS
13+
```
14+
15+
- Short Syntax:
16+
17+
```
18+
CLUSTERS
19+
```
20+
21+
**Example:**
22+
23+
- List current clusters on database:
24+
25+
<pre>
26+
orientdb> <code class="lang-sql userinput">LIST CLUSTERS</code>
27+
28+
CLUSTERS
29+
-------------+------+-----------+-----------
30+
NAME | ID | TYPE | ELEMENTS
31+
-------------+------+-----------+-----------
32+
metadata | 0 | Physical | 11
33+
index | 1 | Physical | 0
34+
default | 2 | Physical | 779
35+
csv | 3 | Physical | 1000
36+
binary | 4 | Physical | 1001
37+
person | 5 | Physical | 7
38+
animal | 6 | Physical | 5
39+
animalrace | -2 | Logical | 0
40+
animaltype | -3 | Logical | 1
41+
orderitem | -4 | Logical | 0
42+
order | -5 | Logical | 0
43+
city | -6 | Logical | 3
44+
-------------+------+-----------+-----------
45+
TOTAL 2807
46+
--------------------------------------------
47+
</pre>
48+
49+
>For information on creating new clusters in the current database, see the [`CREATE CLUSTER`](Console-Command-Create-Cluster.md) command. For more information on other commands, see [Console Commands](Console-Commands.md).

Console-Command-Commit.md

Lines changed: 71 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,71 @@
1-
# Console - COMMIT
2-
3-
Closes a transaction, committing the changes you have made to the database. Use the [`BEGIN`](Console-Command-Begin.md) command to open a transaction. If you don't want to save the changes you've made, use the [`ROLLBACK`](Console-Command-Rollback.md) command to revert the database state back to the point where you opened the transaction.
4-
5-
>For more information, see [Transactions](Transactions.md).
6-
7-
**Syntax**
8-
9-
```sql
10-
COMMIT
11-
```
12-
13-
**Example**
14-
15-
- Initiate a transaction, using the [`BEGIN`](Console-Command-Begin.md) command:
16-
17-
<pre>
18-
orientdb> <code class="lang-sql userinput">BEGIN</code>
19-
20-
Transaction 2 is running
21-
</pre>
22-
23-
- For the sake of example, attempt to open another transaction:
24-
25-
<pre>
26-
orientdb> <code class="lang-sql userinput">BEGIN</code>
27-
28-
Error: an active transaction is currently open (id=2). Commit or rollback
29-
before starting a new one.
30-
</pre>
31-
32-
- Insert data into the class `Account`, using an [`INSERT`](SQL-Insert.md) statement:
33-
34-
<pre>
35-
orientdb> <code class="lang-sql userinput">INSERT INTO Account (name) VALUES ('tx test')</code>
36-
37-
Inserted record 'Account#9:-2{name:tx test} v0' in 0,000000 sec(s).
38-
</pre>
39-
40-
- Commit the transaction to the database:
41-
42-
<pre>
43-
orientdb> <code class="lang-sql userinput">COMMIT</code>
44-
45-
Transaction 2 has been committed in 4ms
46-
</pre>
47-
48-
- Display the new content, using a [`SELECT`](SQL-Query.md) query:
49-
50-
<pre>
51-
orientdb> <code class="lang-sql userinput">SELECT FROM Account WHERE name LIKE 'tx%'</code>
52-
53-
---+---------+----------
54-
# | RID | name
55-
---+---------+----------
56-
0 | #9:1107 | tx test
57-
---+---------+----------
58-
59-
1 item(s) found. Query executed in 0.041 sec(s).
60-
</pre>
61-
62-
When a transaction is open, all new records use a temporary Record ID that features negative numbers. After the commit, they have a permanent Record ID that uses with positive numbers.
63-
64-
>For more information, see
65-
>- [Transactions](Transactions.md)
66-
>- [`BEGIN`](Console-Command-Begin.md)
67-
>- [`ROLLBACK`](Console-Command-Rollback.md)
68-
>- [Console Commands](Console-Commands.md)
1+
<!-- proofread 2015-01-07 SAM -->
2+
3+
# Console - COMMIT
4+
5+
Closes a transaction, committing the changes you have made to the database. Use the [`BEGIN`](Console-Command-Begin.md) command to open a transaction. If you don't want to save the changes you've made, use the [`ROLLBACK`](Console-Command-Rollback.md) command to revert the database state back to the point where you opened the transaction.
6+
7+
>For more information, see [Transactions](Transactions.md).
8+
9+
**Syntax**
10+
11+
```sql
12+
COMMIT
13+
```
14+
15+
**Example**
16+
17+
- Initiate a transaction, using the [`BEGIN`](Console-Command-Begin.md) command:
18+
19+
<pre>
20+
orientdb> <code class="lang-sql userinput">BEGIN</code>
21+
22+
Transaction 2 is running
23+
</pre>
24+
25+
- For the sake of example, attempt to open another transaction:
26+
27+
<pre>
28+
orientdb> <code class="lang-sql userinput">BEGIN</code>
29+
30+
Error: an active transaction is currently open (id=2). Commit or rollback
31+
before starting a new one.
32+
</pre>
33+
34+
- Insert data into the class `Account`, using an [`INSERT`](SQL-Insert.md) statement:
35+
36+
<pre>
37+
orientdb> <code class="lang-sql userinput">INSERT INTO Account (name) VALUES ('tx test')</code>
38+
39+
Inserted record 'Account#9:-2{name:tx test} v0' in 0,000000 sec(s).
40+
</pre>
41+
42+
- Commit the transaction to the database:
43+
44+
<pre>
45+
orientdb> <code class="lang-sql userinput">COMMIT</code>
46+
47+
Transaction 2 has been committed in 4ms
48+
</pre>
49+
50+
- Display the new content, using a [`SELECT`](SQL-Query.md) query:
51+
52+
<pre>
53+
orientdb> <code class="lang-sql userinput">SELECT FROM Account WHERE name LIKE 'tx%'</code>
54+
55+
---+---------+----------
56+
# | RID | name
57+
---+---------+----------
58+
0 | #9:1107 | tx test
59+
---+---------+----------
60+
61+
1 item(s) found. Query executed in 0.041 sec(s).
62+
</pre>
63+
64+
When a transaction is open, all new records use a temporary Record ID that features negative numbers. After the commit, they have a permanent Record ID that uses with positive numbers.
65+
66+
>For more information, see
67+
>
68+
>- [Transactions](Transactions.md)
69+
>- [`BEGIN`](Console-Command-Begin.md)
70+
>- [`ROLLBACK`](Console-Command-Rollback.md)
71+
>- [Console Commands](Console-Commands.md)

0 commit comments

Comments
 (0)