forked from talamas/cs373-idb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.html
244 lines (218 loc) · 11.6 KB
/
models.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module models</title>
<meta charset="utf-8">
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>models</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/lincoln/Documents/CS 373/IDB/cs373-idb/app/models.py">/Users/lincoln/Documents/CS 373/IDB/cs373-idb/app/models.py</a></font></td></tr></table>
<p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="sqlalchemy.html">sqlalchemy</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial">flask_sqlalchemy.Model(<a href="flask_sqlalchemy.html#Model">flask_sqlalchemy.Model</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="models.html#Car">Car</a>
</font></dt><dt><font face="helvetica, arial"><a href="models.html#Engine">Engine</a>
</font></dt><dt><font face="helvetica, arial"><a href="models.html#Manufacturer">Manufacturer</a>
</font></dt></dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="Car">class <strong>Car</strong></a>(flask_sqlalchemy.Model)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>A model for a car, encapsulating the attributes we track for the car.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="models.html#Car">Car</a></dd>
<dd>flask_sqlalchemy.Model</dd>
<dd><a href="flask_sqlalchemy.html#Model">flask_sqlalchemy.Model</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="Car-__init__"><strong>__init__</strong></a>(self, make, model, year, price, horsepower)</dt></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>horsepower</strong></dt>
</dl>
<dl><dt><strong>id</strong></dt>
</dl>
<dl><dt><strong>make</strong></dt>
</dl>
<dl><dt><strong>model</strong></dt>
</dl>
<dl><dt><strong>price</strong></dt>
</dl>
<dl><dt><strong>year</strong></dt>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__mapper__</strong> = <Mapper at 0x105d03890; Car></dl>
<dl><dt><strong>__table__</strong> = Table('car', MetaData(bind=None), Column('id', I...orsepower', Integer(), table=<car>), schema=None)</dl>
<dl><dt><strong>__tablename__</strong> = 'car'</dl>
<hr>
Methods inherited from flask_sqlalchemy.Model:<br>
<strong>query</strong> = <flask_sqlalchemy.BaseQuery object>
<hr>
Data and other attributes inherited from flask_sqlalchemy.Model:<br>
<dl><dt><strong>metadata</strong> = MetaData(bind=None)</dl>
<hr>
Data descriptors inherited from <a href="flask_sqlalchemy.html#Model">flask_sqlalchemy.Model</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
Data and other attributes inherited from <a href="flask_sqlalchemy.html#Model">flask_sqlalchemy.Model</a>:<br>
<dl><dt><strong>query_class</strong> = <class 'flask_sqlalchemy.BaseQuery'><dd><tt>The default query object used for models, and exposed as<br>
:attr:`~SQLAlchemy.Query`. This can be subclassed and<br>
replaced for individual models by setting the :attr:`~Model.query_class`<br>
attribute. This is a subclass of a standard SQLAlchemy<br>
:class:`~sqlalchemy.orm.query.Query` class and has all the methods of a<br>
standard query as well.</tt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="Engine">class <strong>Engine</strong></a>(flask_sqlalchemy.Model)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>A model for an engine, encapsulating the attributes we track for<br>
the engine.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="models.html#Engine">Engine</a></dd>
<dd>flask_sqlalchemy.Model</dd>
<dd><a href="flask_sqlalchemy.html#Model">flask_sqlalchemy.Model</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="Engine-__init__"><strong>__init__</strong></a>(self, name, cylinder, fuel_type, horsepower, torque)</dt></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>cylinder</strong></dt>
</dl>
<dl><dt><strong>fuel_type</strong></dt>
</dl>
<dl><dt><strong>horsepower</strong></dt>
</dl>
<dl><dt><strong>id</strong></dt>
</dl>
<dl><dt><strong>name</strong></dt>
</dl>
<dl><dt><strong>torque</strong></dt>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__mapper__</strong> = <Mapper at 0x105d424d0; Engine></dl>
<dl><dt><strong>__table__</strong> = Table('engine', MetaData(bind=None), Column('id'...torque', Integer(), table=<engine>), schema=None)</dl>
<dl><dt><strong>__tablename__</strong> = 'engine'</dl>
<hr>
Methods inherited from flask_sqlalchemy.Model:<br>
<strong>query</strong> = <flask_sqlalchemy.BaseQuery object>
<hr>
Data and other attributes inherited from flask_sqlalchemy.Model:<br>
<dl><dt><strong>metadata</strong> = MetaData(bind=None)</dl>
<hr>
Data descriptors inherited from <a href="flask_sqlalchemy.html#Model">flask_sqlalchemy.Model</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
Data and other attributes inherited from <a href="flask_sqlalchemy.html#Model">flask_sqlalchemy.Model</a>:<br>
<dl><dt><strong>query_class</strong> = <class 'flask_sqlalchemy.BaseQuery'><dd><tt>The default query object used for models, and exposed as<br>
:attr:`~SQLAlchemy.Query`. This can be subclassed and<br>
replaced for individual models by setting the :attr:`~Model.query_class`<br>
attribute. This is a subclass of a standard SQLAlchemy<br>
:class:`~sqlalchemy.orm.query.Query` class and has all the methods of a<br>
standard query as well.</tt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="Manufacturer">class <strong>Manufacturer</strong></a>(flask_sqlalchemy.Model)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>A model for a manufacturer, encapsulating the attributes we track for<br>
the manufacturer.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="models.html#Manufacturer">Manufacturer</a></dd>
<dd>flask_sqlalchemy.Model</dd>
<dd><a href="flask_sqlalchemy.html#Model">flask_sqlalchemy.Model</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="Manufacturer-__init__"><strong>__init__</strong></a>(self, name, num_models, avg_price, most_expensive, avg_horsepower)</dt></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>avg_horsepower</strong></dt>
</dl>
<dl><dt><strong>avg_price</strong></dt>
</dl>
<dl><dt><strong>id</strong></dt>
</dl>
<dl><dt><strong>most_expensive</strong></dt>
</dl>
<dl><dt><strong>name</strong></dt>
</dl>
<dl><dt><strong>num_models</strong></dt>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__mapper__</strong> = <Mapper at 0x105d03ed0; Manufacturer></dl>
<dl><dt><strong>__table__</strong> = Table('manufacturer', MetaData(bind=None), Colum...er', Float(), table=<manufacturer>), schema=None)</dl>
<dl><dt><strong>__tablename__</strong> = 'manufacturer'</dl>
<hr>
Methods inherited from flask_sqlalchemy.Model:<br>
<strong>query</strong> = <flask_sqlalchemy.BaseQuery object>
<hr>
Data and other attributes inherited from flask_sqlalchemy.Model:<br>
<dl><dt><strong>metadata</strong> = MetaData(bind=None)</dl>
<hr>
Data descriptors inherited from <a href="flask_sqlalchemy.html#Model">flask_sqlalchemy.Model</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
Data and other attributes inherited from <a href="flask_sqlalchemy.html#Model">flask_sqlalchemy.Model</a>:<br>
<dl><dt><strong>query_class</strong> = <class 'flask_sqlalchemy.BaseQuery'><dd><tt>The default query object used for models, and exposed as<br>
:attr:`~SQLAlchemy.Query`. This can be subclassed and<br>
replaced for individual models by setting the :attr:`~Model.query_class`<br>
attribute. This is a subclass of a standard SQLAlchemy<br>
:class:`~sqlalchemy.orm.query.Query` class and has all the methods of a<br>
standard query as well.</tt></dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>db</strong> = <SQLAlchemy engine='mysql+pymysql://None:None@None/None'></td></tr></table>
</body></html>