Module: SybaseDefinitions

Defined in:
lib/marjoree/sybase_definitions.rb

Defined Under Namespace

Classes: Column, ColumnDefinition, Table, View

Instance Method Summary collapse

Instance Method Details

#bit_column(column_name) ⇒ Object



31
32
33
# File 'lib/marjoree/sybase_definitions.rb', line 31

def bit_column( column_name )
    return ColumnDefinition.new( column_name, "bit" )
end

#char_column(column_name) ⇒ Object



19
20
21
# File 'lib/marjoree/sybase_definitions.rb', line 19

def char_column( column_name )
    return ColumnDefinition.new( column_name, "char" )
end

#datetime_column(column_name) ⇒ Object



23
24
25
# File 'lib/marjoree/sybase_definitions.rb', line 23

def datetime_column( column_name )
    return ColumnDefinition.new( column_name, "datetime" )
end

#int_column(column_name) ⇒ Object



11
12
13
# File 'lib/marjoree/sybase_definitions.rb', line 11

def int_column( column_name )
    return ColumnDefinition.new( column_name, "int" )
end

#numeric_column(column_name) ⇒ Object



27
28
29
# File 'lib/marjoree/sybase_definitions.rb', line 27

def numeric_column( column_name )
    return ColumnDefinition.new( column_name, "numeric" )
end

#table(table_name) ⇒ Object



7
8
9
# File 'lib/marjoree/sybase_definitions.rb', line 7

def table( table_name )
    return Table.new( table_name )
end

#varchar_column(column_name) ⇒ Object



15
16
17
# File 'lib/marjoree/sybase_definitions.rb', line 15

def varchar_column( column_name )
    return ColumnDefinition.new( column_name, "varchar" )
end

#view(view_name) ⇒ Object



3
4
5
# File 'lib/marjoree/sybase_definitions.rb', line 3

def view( view_name )
    return View.new( view_name )
end