-
Notifications
You must be signed in to change notification settings - Fork 4
Migrating from SQL Yoga 1x
Trevor DeVore edited this page Jul 27, 2018
·
3 revisions
While the APIs between SQL Yoga 1 and SQL Yoga 2 are very similar, there are some differences and changes that you should be aware of. This document explains what each of the differences are.
In SQL Yoga 1 table behaviors were stored in a button that was assigned to the table objects behavior property of the Database object. The format for a function that defined a custom property looked like this:
tableobj.get.[TABLE_NAME].[PROPERTY_NAME_WITHOUT_SPACES]
In SQL Yoga 2 table behaviors are stack scripts with the following naming convention:
[TABLE_NAME] table behavior
A function that defines a custom property looks like this:
[TABLE_NAME]_get[PROPERTY_NAME_WITHOUT_SPACES]
See the Table Behaviors page for more information.
SQL Yoga USER GUIDE
- Home
- SQL Yoga Objects
- Database Objects
- Connection Objects
- SQL Query Objects
- SQL Record Objects
- Table Objects
- Table Object Behaviors
- Relationships
- Scopes
- Schema
- Working with User Search Strings
- SQL Query Template Objects
- Error Handling
- Migrating from SQL Yoga 1.x
- Integrating with the Levure Application Framework