class Dbsketch::Rendering::SQL::TypeRenderer
Public Instance Methods
create(type)
click to toggle source
# File lib/dbsketch/rendering/sql/type_renderer.rb, line 13 def create type ### Preconditions raise ArgumentError, "type is not a Dbsketch::Model::Type" unless type.is_a? Dbsketch::Model::Type ### if type.sizes.empty? type.sql_type else "#{type.sql_type}(#{type.sizes.join(",")})" end end