|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | *
|
4 | 4 | * This program is free software; you can redistribute it and/or modify
|
5 | 5 | * it under the terms of the GNU General Public License, version 2.0,
|
@@ -54,22 +54,17 @@ class Connection;
|
54 | 54 | * $(CLASSICSESSION_BRIEF)
|
55 | 55 | *
|
56 | 56 | * $(CLASSICSESSION_DETAIL)
|
57 |
| - * |
58 |
| - * \code{.js} |
59 |
| - * // Establishes the connection. |
60 |
| - * var mysql = require('mysql'); |
61 |
| - * var session = mysql.getClassicSession("myuser@localhost", pwd); |
62 |
| - * |
63 |
| - * // Getting a schema through the getSchema function |
64 |
| - * var schema = session.getSchema("sakila"); |
65 |
| - * |
66 |
| - * // Getting a schema through a session property |
67 |
| - * var schema = session.sakila; |
68 |
| - * \endcode |
69 |
| - * |
70 |
| - * \sa mysql.getClassicSession(String connectionData, String password) |
71 |
| - * \sa mysql.getClassicSession(Map connectionData, String password) |
72 | 57 | */
|
| 58 | +#if DOXYGEN_JS |
| 59 | +/** |
| 60 | + * \snippet mysql_session.js ClassicSession: SQL execution example |
| 61 | + */ |
| 62 | +#elif DOXYGEN_PY |
| 63 | +/** |
| 64 | + * \snippet mysql_session.py ClassicSession: SQL execution example |
| 65 | + */ |
| 66 | +#endif |
| 67 | + |
73 | 68 | class SHCORE_PUBLIC ClassicSession
|
74 | 69 | : public ShellBaseSession,
|
75 | 70 | public std::enable_shared_from_this<ClassicSession> {
|
|
0 commit comments