Exemplo n.º 1
0
    def __init__(self):
        FormatWriter.__init__(
            self,
            u"""Id\tTitle\tSubtitle\tAutocomplete
{0}
""")
        Formatter.set(SimpleFormatter())
Exemplo n.º 2
0
 def __init__(self, options):
     FormatWriter.__init__(
         self,
         FORMATS.get(options.verbose, FORMATS[0]),
         ITEM_FORMATS.get(options.verbose, ITEM_FORMATS[0]))
     Formatter.set(DefaultFormatter())
     self.options = options
Exemplo n.º 3
0
    def __init__(self, include_tables=False):
        FormatWriter.__init__(self, u"""digraph dbgraph {{
{0}
}}
""")
        self.include_tables = include_tables
        Formatter.set(GraphvizFormatter())
Exemplo n.º 4
0
 def __init__(self, options=None):
     FormatWriter.__init__(
         self, u'{0}\n', u"""{prefix}    - &{table}_{id} !!{package}.{model}
     {tuples}""")
     Formatter.set(DefaultFormatter())
     self.package = options.package
     self.last_table = None
Exemplo n.º 5
0
 def __init__(self, options=None):
     FormatWriter.__init__(
         self,
         u'{0}\n',
         u'insert into {table} ({columns}) values ({values});')
     Formatter.set(DefaultFormatter())
     self.table_name = options.table_name
Exemplo n.º 6
0
    def __init__(self):
        FormatWriter.__init__(
            self,
            u"""[
{0}
]
""", item_separator=u',\n',)
        Formatter.set(JsonFormatter())
Exemplo n.º 7
0
 def __init__(self, options=None):
     FormatWriter.__init__(
         self,
         u"{0}\n",
         u"""{prefix}    - &{table}_{id} !!{package}.{model}
     {tuples}""",
     )
     Formatter.set(DefaultFormatter())
     self.package = options.package
     self.last_table = None
Exemplo n.º 8
0
    def __init__(self):
        FormatWriter.__init__(
            self,
            u"""[
{0}
]
""",
            item_separator=u',\n',
        )
        Formatter.set(JsonFormatter())
Exemplo n.º 9
0
 def __init__(self):
     FormatWriter.__init__(self, u'{0}\n')
     Formatter.set(SimplifiedFormatter())
Exemplo n.º 10
0
 def __init__(self, options):
     FormatWriter.__init__(
         self, FORMATS.get(options.verbose, FORMATS[0]),
         ITEM_FORMATS.get(options.verbose, ITEM_FORMATS[0]))
     Formatter.set(DefaultFormatter())
     self.options = options
Exemplo n.º 11
0
 def __init__(self, options):
     FormatWriter.__init__(
         self, u'{0}\n',
         u'update {table} set {values} where {restriction};')
     Formatter.set(DefaultFormatter())
     self.options = options
Exemplo n.º 12
0
 def __init__(self, options):
     FormatWriter.__init__(
         self, u'{0}\n',
         u'insert into {table} ({columns}) values ({values});')
     Formatter.set(DefaultFormatter())
     self.options = options
Exemplo n.º 13
0
 def __init__(self, options=None):
     FormatWriter.__init__(self, u'{0}\n', options.format)
     Formatter.set(DefaultFormatter())
Exemplo n.º 14
0
 def __init__(self, left=None, right=None):
     FormatWriter.__init__(self, u'{0}\n')
     Formatter.set(DefaultFormatter())
     self.left = left
     self.right = right
Exemplo n.º 15
0
 def __init__(self, options=None):
     FormatWriter.__init__(self, u'{0}\n', u'{0}\n')
     self.options = options
     Formatter.set(DefaultFormatter())
Exemplo n.º 16
0
 def __init__(self, options=None):
     FormatWriter.__init__(self, u'{0}\n', u'{0}')
     if options.verbose > 0:
         Formatter.set(DefaultFormatter())
     else:
         Formatter.set(DefaultFormatter())
Exemplo n.º 17
0
    def __init__(self):
        FormatWriter.__init__(self, u"""Id\tTitle\tSubtitle\tAutocomplete
{0}
""")
        Formatter.set(SimpleFormatter())
Exemplo n.º 18
0
 def __init__(self):
     FormatWriter.__init__(self, u'{0}\n')
     Formatter.set(SimplifiedFormatter())
Exemplo n.º 19
0
 def __init__(self, options):
     FormatWriter.__init__(self, u"{0}\n", u"update {table} set {values} where {restriction};")
     Formatter.set(DefaultFormatter())
     self.options = options
Exemplo n.º 20
0
 def __init__(self, options):
     FormatWriter.__init__(self, u"{0}\n", u"insert into {table} ({columns}) values ({values});")
     Formatter.set(DefaultFormatter())
     self.options = options
Exemplo n.º 21
0
 def __init__(self, options=None):
     FormatWriter.__init__(self, u"{0}\n", options.format)
     Formatter.set(DefaultFormatter())
Exemplo n.º 22
0
 def __init__(self, options):
     FormatWriter.__init__(self, u'{0}\n',
                           u'delete from {table} where {restriction};')
     Formatter.set(DefaultFormatter())
     self.options = options
Exemplo n.º 23
0
 def __init__(self):
     FormatWriter.__init__(self, u'{0}', u'{autocomplete}')
     Formatter.set(AutocompleteFormatter())
Exemplo n.º 24
0
 def __init__(self, options):
     FormatWriter.__init__(self, u"{0}\n", u"delete from {table} where {restriction};")
     Formatter.set(DefaultFormatter())
     self.options = options
Exemplo n.º 25
0
 def __init__(self):
     FormatWriter.__init__(self, u'{0}', u'{autocomplete}')
     Formatter.set(AutocompleteFormatter())
Exemplo n.º 26
0
 def __init__(self, options=None):
     FormatWriter.__init__(self, u'{0}\n', u'{0}', u'')
     Formatter.set(YamlFormatter())
     self.options = options