Git Product home page Git Product logo

famixngsql's Introduction

FAMIXNGSQL Build Status

A meta-model for SQL databases using FAMIXNG with its generator.

Install

In a Pharo 7.0 image, open a playground and execute the following script:

Metacello new
  repository: 'github://juliendelplanque/FAMIXNGSQL/src';
  baseline: 'FAMIXNGSQL';
  load

Developing the meta-model generator

This section presents some tips and tricks that help in the development of the meta-model.

Modifying the meta-model generator

If you modified the generator and want to re-generate the meta-model, you have to:

  1. Ensure that no more instances of the meta-model exist in the system.
  2. Run FmxSQLMetamodelGenerator generate.

famixngsql's People

Contributors

deem0n avatar juliendelplanque avatar larcheveque avatar pavel-krivanek avatar

Watchers

 avatar

famixngsql's Issues

FmxSQLMooseModel initialize changed

initialize
		<generated>
		super initialize.
		self metamodel: (self class environment at: #FmxSQLMetamodelGenerator) metamodel

Now:

initialize

	<generated>
	super initialize.
	self metamodel: FmxSQLModel metamodel

Fix Namespace

We have

entityInNamespaceComment
	^ 'I am a trait that any entity which can be part of a namespace use.'

but no traces of entityInNamespace trait.

image image image image image

Entity is deprecated, association is gone

Base class FamixBasicInfrastructureGeneratorin Pharo 7

defineClasses
	super defineClasses.
	entity := builder newClassNamed: #Entity.
	sourceAnchor := builder newClassNamed: #SourceAnchor.
	sourceLanguage := builder newClassNamed: #SourceLanguage.
	unknownSourceLanguage := builder
		newClassNamed: #UnknownSourceLanguage.
	sourcedEntity := builder newClassNamed: #SourcedEntity.
	association := builder newClassNamed: #Association.
defineHierarchy
	sourceAnchor --|> entity.
	sourceAnchor --|> #TSourceAnchor.
	sourceLanguage --|> entity.
	sourceLanguage --|> #TSourceLanguage.
	sourcedEntity --|> entity.
	sourcedEntity --|> #TSourceEntity.
	sourcedEntity --|> #TWithComments.
	association --|> sourcedEntity.
	association --|> #TAssociation.

in Pharo 10:

FamixMetamodelGenerator << #FamixBasicInfrastructureGenerator
	slots: {
			 #entity => FamixDeprecatedSlot message: 'This variable should not be used anymore. XXXEntity is now the default root and you don''t need to declare you inherit from it. If you wish to add property to it, get the class with `self ensureClassNamed: #Entity`.' .

image

FamixTWithSourceAnchor is deprecated, migration required

Before:

Trait << #FamixTWithSourceAnchor
	slots: { #sourceAnchor => FMOne type: #FamixTSourceAnchor opposite: #element };
	package: 'Famix-Deprecated'

Now

Trait << #FamixTSourceAnchor
	slots: { #element => FMOne type: #FamixTSourceEntity opposite: #sourceAnchor };
	tag: 'SourceAnchor';
	package: 'Famix-Traits'
image

It seems that direction of relation was changed, so we should not simply rename the class...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.