__init___.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. __doc__ = """"
  2. This module is designed to perform exports to a relational data stores, We have 2 methods to infer structure possible :
  3. 1. learn structure from the data
  4. 2. use template: fast, but may not generalize
  5. Note that the There are two possible methods to perform relational exports
  6. """
  7. # import transport
  8. # from transport import providers
  9. # # from healthcareio.x12 import plugins, util
  10. # print ('hello world')
  11. # class Mode :
  12. # TEMPLATE,LEARN = [0,1]
  13. # def build ():
  14. # pass
  15. # class Template :
  16. # """
  17. # This class is intended to generate a set of SQL Instructions to to create the tables
  18. # """
  19. # @staticmethod
  20. # def build (**_args):
  21. # """
  22. # This function will build SQL statements to create a table (perhaps not needed)
  23. # :plugins loaded plugins
  24. # :x12 837|835 file types
  25. # """
  26. # _plugins=_args['plugins']
  27. # _x12 = _args['x12']
  28. # _template = util.template(plugins=_plugins)[_x12]
  29. # _primaryKey = util.getPrimaryKey(plugins=_plugins,x12=_x12)
  30. # _tables = []
  31. # for _item in _template :
  32. # if _primaryKey not in _item :
  33. # _item[_primaryKey] = ''
  34. # _tables.append(_item)
  35. # return _tables