@@ -24,13 +24,23 @@ databases. You have several options for creating a schema and
24
24
launching :binary:`~bin.mongosqld`. This guide will help you choose
25
25
the best option for your needs.
26
26
27
- By default, :binary:`~bin.mongosqld` generates a :doc:`data schema
28
- </schema-configuration>` and holds it in memory. Alternatively, if
29
- you prefer to create a schema file and edit it manually, use the
30
- :binary:`~bin.mongodrdl` program to create a ``.drdl`` schema
31
- file and use the :option:`--schema <mongosqld --schema>` option
32
- when starting :binary:`~bin.mongosqld`. For more information on schema
33
- generation and data sampling, see :doc:`schema-configuration`.
27
+ By default, :binary:`~bin.mongosqld` generates a default :doc:`data schema
28
+ </schema-configuration>` and stores it in memory. Alternatively, if you prefer
29
+ to create a custom schema and edit it manually, use one of these two methods:
30
+
31
+ - Use the :binary:`~bin.mongodrdl` program to create a custom ``.drdl`` schema
32
+ file and then start :binary:`~bin.mongosqld` with the
33
+ :option:`--schema <mongodrdl --schema>` option to point to this file.
34
+
35
+ - If you previously uploaded a custom schema with the :commandoption:`upload`
36
+ command, you must use the :commandoption:`name-schema <name-schema>`
37
+ command to store the schema internally under the provided custom name.
38
+ Then you can start :binary:`~bin.mongosqld` with
39
+ :option:`--schemaSource <mongosqld --schema>`,
40
+ :option:`--schemaMode <mongosqld --schema>`, and
41
+ :option:`--schemaName <mongosqld --schemaName>` options.
42
+
43
+ To learn more about creating a schema and data sampling, see :doc:`schema-configuration`.
34
44
35
45
Prerequisites
36
46
-------------
0 commit comments