| Line 296... |
Line 296... |
| 296 |
listingExpiryDate = Field(DateTime)
|
296 |
listingExpiryDate = Field(DateTime)
|
| 297 |
subsidy = Field(Float)
|
297 |
subsidy = Field(Float)
|
| 298 |
defaultWarehouseId = Field(Integer)
|
298 |
defaultWarehouseId = Field(Integer)
|
| 299 |
using_options(shortnames=True)
|
299 |
using_options(shortnames=True)
|
| 300 |
using_table_options(mysql_engine="InnoDB")
|
300 |
using_table_options(mysql_engine="InnoDB")
|
| - |
|
301 |
|
| - |
|
302 |
class SnapdealItem(Entity):
|
| - |
|
303 |
item_id = Field(Integer, primary_key=True, autoincrement = False)
|
| - |
|
304 |
exceptionPrice = Field(Float)
|
| - |
|
305 |
warehouseId = Field(Integer)
|
| - |
|
306 |
using_options(shortnames=True)
|
| - |
|
307 |
using_table_options(mysql_engine="InnoDB")
|
| 301 |
|
308 |
|
| 302 |
def initialize(dbname='catalog', db_hostname="localhost"):
|
309 |
def initialize(dbname='catalog', db_hostname="localhost"):
|
| 303 |
#metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
|
310 |
#metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
|
| 304 |
#metadata.bind = 'mysql://root:shop2020@localhost/catalog'
|
311 |
#metadata.bind = 'mysql://root:shop2020@localhost/catalog'
|
| 305 |
cengine = create_engine('mysql://root:shop2020@' + db_hostname + '/' + dbname, pool_recycle=7200)
|
312 |
cengine = create_engine('mysql://root:shop2020@' + db_hostname + '/' + dbname, pool_recycle=7200)
|