File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ Usage examples
2424Constructing a connection string from scratch:
2525
2626.. code :: python
27+
2728 >> > from pyconstring import ConnectionString
2829 >> > cs = ConnectionString()
2930 >> > cs[' user' ] = ' manuel'
@@ -34,6 +35,7 @@ Constructing a connection string from scratch:
3435 Parsing an already existing string:
3536
3637.. code :: python
38+
3739 >> > cs = ConnectionString.from_string(' key1=value1;key2=value2;' )
3840 >> > cs[' key1' ] = ' another value'
3941 >> > cs.get_string()
@@ -45,6 +47,7 @@ Parsing an already existing string:
4547 Automated escaping when necessary:
4648
4749.. code :: python
50+
4851 >> > cs = ConnectionString()
4952 >> > cs[' weird=key' ] = ' " weird;value '
5053 >> > print cs.get_string()
@@ -53,6 +56,7 @@ Automated escaping when necessary:
5356 Key translation:
5457
5558.. code :: python
59+
5660 >> > cs[' key' ] = ' value'
5761 >> > cs.translate({' key' : ' clave' })
5862 >> > print cs.get_string()
You can’t perform that action at this time.
0 commit comments