Module: KDomain::Schemas

Defined in:
lib/k_domain/schemas/domain.rb,
lib/k_domain/schemas/database.rb,
lib/k_domain/schemas/dictionary.rb,
lib/k_domain/schemas/investigate.rb,
lib/k_domain/schemas/domain_types.rb,
lib/k_domain/schemas/main_dataset.rb,
lib/k_domain/schemas/rails_resource.rb,
lib/k_domain/schemas/rails_structure.rb

Defined Under Namespace

Modules: Types Classes: Database, Dictionary, Domain, Investigate, MainDataset, Model, RailsResource, RailsStructure, Route

Constant Summary collapse

RUBY_TYPE =
{
  text: 'String',
  string: 'String',
  primary_key: 'Integer', # this could be GUID in future
  foreign_key: 'Integer', # this could be GUID in future
  integer: 'Integer',
  bigint: 'Integer',
  bigserial: 'Integer',
  boolean: 'Boolean',
  float: 'Float',
  decimal: 'Decimal',
  datetime: 'DateTime',
  date: 'DateTime',
  json: 'Hash',
  jsonb: 'Hash',
  hstore: 'Hash'
}.freeze
CSHARP_TYPE =
{
  string: 'string',
  text: 'string', # NEED TO DEAL WITH THIS BETTER
  integer: 'int',
  bigint: 'int',
  bigserial: 'long',
  boolean: 'bool',
  decimal: 'decimal',
  float: 'double',
  datetime: 'DateTime',
  date: 'DateTime',
  json: 'object',
  jsonb: 'object',
  hstore: 'object'
}.freeze
DB_TYPE =

this is used by the ruby migration files

{
  boolean: 'boolean',
  primary_key: 'integer',
  foreign_key: 'integer',
  integer: 'integer',
  bigint: 'integer',
  bigserial: 'bigserial',
  decimal: 'decimal',
  float: 'float',
  datetime: 'datetime',
  date: 'date',
  text: 'text',
  string: 'string',
  json: 'json',
  jsonb: 'jsonb',
  hstore: 'hstore'
}.freeze