Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1""" 

2 pyexcel_io.database 

3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

4 

5 database data importer and exporter 

6 

7 :copyright: (c) 2014-2020 by Onni Software Ltd. 

8 :license: New BSD License, see LICENSE for more details 

9""" 

10from pyexcel_io.plugins import IOPluginInfoChainV2 

11from pyexcel_io.constants import DB_SQL, DB_DJANGO, DB_QUERYSET 

12 

13IOPluginInfoChainV2(__name__).add_a_reader( 

14 relative_plugin_class_path="exporters.queryset.QueryReader", 

15 locations=["file", "memory", "content"], 

16 file_types=[DB_QUERYSET], 

17).add_a_reader( 

18 relative_plugin_class_path="exporters.django.DjangoBookReader", 

19 locations=["file", "memory", "content"], 

20 file_types=[DB_DJANGO], 

21).add_a_writer( 

22 relative_plugin_class_path="importers.django.DjangoBookWriter", 

23 locations=["file", "content", "memory"], 

24 file_types=[DB_DJANGO], 

25).add_a_reader( 

26 relative_plugin_class_path="exporters.sqlalchemy.SQLBookReader", 

27 locations=["file", "memory", "content"], 

28 file_types=[DB_SQL], 

29).add_a_writer( 

30 relative_plugin_class_path="importers.sqlalchemy.SQLBookWriter", 

31 locations=["file", "content", "memory"], 

32 file_types=[DB_SQL], 

33)