Пример #1
0
    def compile(self):
        buf = StringIO()
        buf.write(self._create_line())

        schema = ddl.format_schema(self.schema)
        buf.write('\n{0}'.format(schema))

        props = self._get_table_properties()
        buf.write('\n')
        buf.write(ddl.format_tblproperties(props))
        return buf.getvalue()
Пример #2
0
    def compile(self):
        buf = StringIO()
        buf.write(self._create_line())

        schema = ddl.format_schema(self.schema)
        buf.write('\n{0}'.format(schema))

        props = self._get_table_properties()
        buf.write('\n')
        buf.write(ddl.format_tblproperties(props))
        return buf.getvalue()
Пример #3
0
 def compile(self):
     return '{}\n{}\n{}'.format(
         self._create_line(),
         ddl.format_schema(self.schema),
         ddl.format_tblproperties(self._get_table_properties()),
     )
Пример #4
0
 def compile(self):
     return '{}\n{}\n{}'.format(
         self._create_line(),
         ddl.format_schema(self.schema),
         ddl.format_tblproperties(self._get_table_properties()),
     )