]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- CSS change to regular font for docstrings now that we use docutils for formatting
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 29 Apr 2007 16:21:43 +0000 (16:21 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 29 Apr 2007 16:21:43 +0000 (16:21 +0000)
- dynamicmetadata clarification

doc/build/content/metadata.txt
doc/docs.css

index 054dbdde8052d4455bd2253c3f827b2fd0223bd6..01d5646cce14218ffb3e5b22b10713a796d30890 100644 (file)
@@ -131,15 +131,17 @@ To bind `MetaData` to a single `Engine`, use `BoundMetaData`:
     
     # create the Engine and MetaData in one step
     meta = BoundMetaData('postgres://db/', **kwargs)
-    
-Another form of `MetaData` exists which can connect to an engine within the context of the current thread only, allowing different engines to be connected within other concurrent threads.  This is `DynamicMetaData`:
+
+Another form of `MetaData` exits which can connect to an engine within the current thread (or "on a per-thread basis"), allowing other threads to be connected to different engines simultaneously:
 
     {python}
     meta = DynamicMetaData()
+
+    # In thread 1, connect to an existing Engine    
+    meta.connect(engine)
     
-    meta.connect(engine)    # connect to an existing Engine
-    
-    meta.connect('mysql://user@host/dsn')   # create a new Engine and connect
+    # Meanwhile in thread 2, create a new Engine and connect
+    meta.connect('mysq://user@host/dsn')
 
 `DynamicMetaData` is intended for applications that need to use the same set of `Tables` for many different database connections in the same process, such as a CherryPy web application which handles multiple application instances in one process.
 
index c5c3cb43763bccd884bf835b95a1b831e3707892..d65f5aff5ebdf6c651f3e601a1a6db1f4c0722d7 100644 (file)
@@ -129,7 +129,7 @@ h3 {
 }
 
 .darkcell {
-    font-family: courier, "courier new", serif;
+    /*font-family: courier, "courier new", serif;*/
        margin:0px 0px 10px 0px;
        padding:4px 4px 4px 4px;
        background-color: #f0f0f0;