You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-6
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ if __name__ == "__main__":
46
46
asyncio.run(server.serve_forever())
47
47
```
48
48
49
-
Using [sqlglot](https://github.com/tobymao/sqlglot), the abstract `Session` class handles queries to metadata, variables, etc. that many MySQL clients expect.
49
+
Using [sqlglot](https://github.com/tobymao/sqlglot), the abstract `Session` class handles queries to metadata, variables, etc. that many MySQL clients expect.
50
50
51
51
To bypass this default behavior, you can implement the [`mysql_mimic.session.BaseSession`](mysql_mimic/session.py) interface.
52
52
@@ -63,7 +63,10 @@ MySQL-mimic has built in support for several standard MySQL authentication plugi
63
63
- This is typically used as the client plugin for a custom server plugin. As such, MySQL-mimic provides an abstract class, [`mysql_mimic.auth.AbstractClearPasswordAuthPlugin`](mysql_mimic/auth.py), which can be extended.
- Kerberos uses tickets together with symmetric-key cryptography, enabling authentication without sending passwords over the network. Kerberos authentication supports userless and passwordless scenarios.
69
+
67
70
68
71
By default, a session naively accepts whatever username the client provides.
69
72
@@ -73,15 +76,15 @@ Custom plugins can be created by extending [`mysql_mimic.auth.AuthPlugin`](mysql
73
76
74
77
## Development
75
78
76
-
You can install dependencies with `make deps`.
79
+
You can install dependencies with `make deps`.
77
80
78
-
You can format your code with `make format`.
81
+
You can format your code with `make format`.
79
82
80
-
You can lint with `make lint`.
83
+
You can lint with `make lint`.
81
84
82
85
You can check type annotations with `make types`.
83
86
84
-
You can run tests with `make test`. This will build a coverage report in `./htmlcov/index.html`.
87
+
You can run tests with `make test`. This will build a coverage report in `./htmlcov/index.html`.
0 commit comments