Lines Matching full:none
25 # self.d_addColumn("agent_id",kInteger,None,primarykey = 1,autoincrement = 1)
27 # self.d_addColumn("ticket_count",kIncInteger,None)
96 self._cursor = None
99 self.SQLError = None
105 if self._cursor is None:
125 rowClass = None, check = 0, create = 0, rowListClass = None):
133 tbl.db = None
135 if self.db is not None:
137 self.db = None
149 def beginTransaction(self, cursor=None):
150 if cursor is None:
155 def commitTransaction(self, cursor=None):
156 if cursor is None:
161 def rollbackTransaction(self, cursor=None):
162 if cursor is None:
201 def listTables(self, cursor=None):
204 def listFieldsDict(self, table_name, cursor=None):
207 def listFields(self, table_name, cursor=None):
220 rowClass = None, check = 0, create = 0, rowListClass = None):
243 self.__col_def_hash = None
244 self.__vcol_def_hash = None
245 self.__primary_key_list = None
267 sz = options.get('size', None)
268 if sz is None: coltype = 'char'
271 sz = options.get('size', None)
272 if sz is None: coltype = 'varchar'
291 if options.get('default', None) is not None: coldef = coldef + " DEFAULT %s" % options.get('default')
315 def createTable(self, cursor=None):
316 if cursor is None: cursor = self.db.defaultCursor()
321 def dropTable(self, cursor=None):
322 if cursor is None: cursor = self.db.defaultCursor()
328 def renameTable(self, newTableName, cursor=None):
329 if cursor is None: cursor = self.db.defaultCursor()
348 dbcoldef = dbcolumns.get(colname, None)
349 if dbcoldef is None:
353 coldef = self.__col_def_hash.get(colname, None)
354 if coldef is None:
378 def addIndex(self, columns, indexName=None, unique=0):
379 if indexName is None:
384 def createIndex(self, columns, indexName=None, unique=0, cursor=None):
385 if cursor is None: cursor = self.db.defaultCursor()
388 if indexName is None:
472 if data is None: data = 0
478 if data is None: data = 0.0
553 def d_addColumn(self,col_name,ctype,size=None,primarykey = 0,
555 default=None,unique=0,autoincrement=0,safeupdate=0,
556 enum_values = None,
558 relations=None,compress_ok=0,int_date=0):
615 def d_addVColumn(self,col_name,type,size=None,default=None):
645 elif type(col_match_spec) == type(None):
649 return None
700 def __buildWhereClause (self, col_match_spec,other_clauses = None):
703 if not col_match_spec is None:
723 if other_clauses is None:
734 def __fetchRows(self,col_match_spec,cursor = None, where = None, order_by = None, limit_to = None,
735 skip_to = None, join = None):
736 if cursor is None:
749 if not join is None:
782 if not limit_to is None:
783 if not skip_to is None:
792 if not skip_to is None:
824 if not value is None:
827 data_dict[name] = None
843 def __deleteRow(self,a_row,cursor = None):
844 if cursor is None:
857 def __updateRowList(self,a_row_list,cursor = None):
858 if cursor is None:
870 if c_type != kIncInteger and col_val is None:
872 elif c_type == kIncInteger and col_inc_val is None:
909 def __insertRow(self,a_row_obj,cursor = None,replace=0):
910 if cursor is None:
915 auto_increment_column_name = None
924 if data is None:
982 # r_deleteRow(a_row_obj,cursor = None)
988 def r_deleteRow(self,a_row_obj, cursor = None):
994 # r_updateRow(a_row_obj,cursor = None)
1000 def r_updateRow(self,a_row_obj, cursor = None):
1005 # InsertRow(a_row_obj,cursor = None)
1011 def r_insertRow(self,a_row_obj, cursor = None,replace=0):
1032 def deleteRow(self,col_match_spec, where=None):
1056 def fetchRow(self, col_match_spec, cursor = None):
1077 def fetchRows(self, col_match_spec = None, cursor = None,
1078 where = None, order_by = None, limit_to = None,
1079 skip_to = None, join = None):
1090 def fetchRowCount (self, col_match_spec = None,
1091 cursor = None, where = None):
1097 if cursor is None:
1123 row = self.__defaultRowClass(self,None,create=1,replace=replace)
1125 if opts['default'] is not None and ctype is not kIncInteger:
1133 def __init__(self,_table,data_dict,create=0,joined_cols = None,replace=0):
1139 self._rowInactive = None
1142 self.__pk_match_spec = None
1225 return None
1261 if c_data is None: c_data = 0
1263 if i_data is None: i_data = 0
1389 def get(self,key,default = None):
1447 changed_list.append( (a_col,self.get(a_col,None),self.__inc_coldata.get(a_col,None)) )
1452 self.__coldata = None
1453 self.__vcoldata = None
1457 def delete(self,cursor = None):
1466 def save(self,cursor = None):