@@ -165,34 +165,6 @@ def save_to_database(self, session=None, table=None,
165
165
params ['dest_auto_commit' ] = auto_commit
166
166
pe .save_as (** params )
167
167
168
- def isave_to_database (self , session = None , table = None ,
169
- initializer = None , mapdict = None ,
170
- auto_commit = True ,
171
- ** keywords ):
172
- """
173
- Save data from a sheet to database
174
-
175
- :param session: a SQLAlchemy session
176
- :param table: a database table
177
- :param initializer: a custom table initialization function if
178
- you have one
179
- :param mapdict: the explicit table column names if your excel
180
- data do not have the exact column names
181
- :param keywords: additional keywords to
182
- :meth:`pyexcel.Sheet.save_to_database`
183
- """
184
- params = self .get_params (** keywords )
185
- if 'name_columns_by_row' not in params :
186
- params ['name_columns_by_row' ] = 0
187
- if 'name_rows_by_column' not in params :
188
- params ['name_rows_by_column' ] = - 1
189
- params ['dest_session' ] = session
190
- params ['dest_table' ] = table
191
- params ['dest_initializer' ] = initializer
192
- params ['dest_mapdict' ] = mapdict
193
- params ['dest_auto_commit' ] = auto_commit
194
- pe .isave_as (** params )
195
-
196
168
def get_book (self , ** keywords ):
197
169
"""Get a instance of :class:`Book` from the file
198
170
@@ -236,31 +208,6 @@ def save_book_to_database(self, session=None, tables=None,
236
208
params ['dest_auto_commit' ] = auto_commit
237
209
pe .save_book_as (** params )
238
210
239
- def isave_book_to_database (self , session = None , tables = None ,
240
- initializers = None , mapdicts = None ,
241
- auto_commit = True , ** keywords ):
242
- """
243
- Save a big book into database
244
-
245
- :param session: a SQLAlchemy session
246
- :param tables: a list of database tables
247
- :param initializers: a list of model
248
- initialization functions.
249
- :param mapdicts: a list of explicit table column names
250
- if your excel data sheets do not have
251
- the exact column names
252
- :param keywords: additional keywords to
253
- :meth:`pyexcel.Book.save_to_database`
254
-
255
- """
256
- params = self .get_params (** keywords )
257
- params ['dest_session' ] = session
258
- params ['dest_tables' ] = tables
259
- params ['dest_initializers' ] = initializers
260
- params ['dest_mapdicts' ] = mapdicts
261
- params ['dest_auto_commit' ] = auto_commit
262
- pe .isave_book_as (** params )
263
-
264
211
265
212
class ExcelInputInMultiDict (ExcelInput ):
266
213
"""
0 commit comments