def __init__(self): FormatWriter.__init__( self, u"""Id\tTitle\tSubtitle\tAutocomplete {0} """) Formatter.set(SimpleFormatter())
def __init__(self, options): FormatWriter.__init__( self, u'{0}\n', u'delete from {table} where {restriction};') Formatter.set(DefaultFormatter()) self.options = options
def __init__(self, options): FormatWriter.__init__( self, u'{0}\n', u'update {table} set {values} where {restriction};') Formatter.set(DefaultFormatter()) self.options = options
def __init__( self, items_format=u"""Title\tAutocomplete {0}""", item_format=u"""{title}\t{autocomplete}"""): FormatWriter.__init__(self, items_format, item_format) Formatter.set(TestFormatter())
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
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
def __init__(self, include_tables=False): FormatWriter.__init__(self, u"""digraph dbgraph {{ {0} }} """) self.include_tables = include_tables Formatter.set(GraphvizFormatter())
def __init__(self): FormatWriter.__init__( self, u"""[ {0} ] """, item_separator=u',\n',) Formatter.set(JsonFormatter())
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
def __init__( self, items_format=u"Title\tSubtitle\tAutocomplete\n{0}\n", item_format=u"{title}\t{subtitle}\t{autocomplete}", item_separator=u"\n", format_error_format=u'{0}'): self.items_format = items_format self.item_format = item_format self.item_separator = item_separator self.format_error_format = format_error_format Formatter.set(DefaultFormatter())
def format(self): return Formatter.format_node(self)
def __init__(self, *args): StdoutWriter.__init__(self, u'{0}\n', u'{item}') Formatter.set(DefaultFormatter())
def __init__(self, left=None, right=None): FormatWriter.__init__(self, u'{0}\n') Formatter.set(DefaultFormatter()) self.left = left self.right = right
def __init__(self): FormatWriter.__init__(self, u'{0}', u'{autocomplete}') Formatter.set(AutocompleteFormatter())
def __init__(self): FormatWriter.__init__(self, u'{0}\n') Formatter.set(SimplifiedFormatter())
def __init__(self, options=None): FormatWriter.__init__(self, u'{0}\n') if options.verbose > 0: Formatter.set(VerboseGraphFormatter(options)) else: Formatter.set(DefaultFormatter())
def format(self): return Formatter.format_column_node(self)
def format(self): return Formatter.format_row(self)
def format(self): return Formatter.format_foreign_key_node(self)
def __init__(self, options=None): FormatWriter.__init__( self, u'{0}\n', options.format) Formatter.set(DefaultFormatter())