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
<p>Or rather fork it and clone your fork. To develop a feature or a bugfix
60
+
create a separate branch, push it to your fork and create a pull request
61
+
to the original repo. That way CI will be triggered to test your code.</p>
61
62
<p>Voila! The packages are globally installed, but the files from the
62
63
checkout were not copied into <ttclass="docutils literal"><spanclass="pre">site-packages</span></tt>. See <ahref="http://pythonhosted.org/setuptools/" class="reference external">setuptools</a> for more.</p>
63
64
</div>
65
+
<divclass="section" id="architecture">
66
+
<h1>Architecture</h1>
67
+
<p>There are four main kinds of objects in SQLObject: tables, columns,
68
+
connections and converters.</p>
69
+
<p>Tables-related objects are in sqlobject/main.py module. There are two
70
+
main classes: SQLObject and sqlmeta; the latter is not a metaclass but a
71
+
parent class for sqlmeta attribute in every class - the authors tried to
72
+
move there all attributes and methods not directly related to columns to
73
+
avoid cluttering table namespace.</p>
74
+
<p>Columns are instances of classes from sqlobject/col.py. There are two
75
+
classes for every column: one is for user to include into an instance of
76
+
SQLObject, an instance of the other is automatically created by
77
+
SQLObject metaclass. The two classes are names SOCol and Col; for
78
+
example, SOBoolCol and BoolCol.</p>
79
+
<p>Connections are instances of DBConnection class (from
80
+
sqlobject/dbconnection.py ) and its concrete descendants. DBConnection
81
+
contains generic code for generating SQL, working with transactions and
82
+
so on. Concrete connection classes (like PostgresConnection and
<p>The latest releases are always available on the <ahref="http://pypi.python.org/pypi/SQLObject" class="reference external">Python Package Index</a>, and is installable
34
+
<p>The latest releases are always available on the <ahref="https://pypi.python.org/pypi/SQLObject" class="reference external">Python Package Index</a>, and is installable
35
35
with <ahref="http://pythonhosted.org/setuptools/easy_install.html" class="reference external">easy_install</a>.</p>
0 commit comments