-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename composite type to structured type #338
Conversation
PR Summary
Through these changes, we are building more structured, organized, and readable code, mirroring our attempt to adhere to better coding standards. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #338 +/- ##
===========================================
Coverage 100.00% 100.00%
Complexity 241 241
===========================================
Files 16 16
Lines 694 694
===========================================
Hits 694 694 ☔ View full report in Codecov by Sentry. |
https://en.wikipedia.org/wiki/Structured_type
Composite
folderPgSQL:
CREATE TYPE typename AS (...);
-- Composite typeA composite type represents the structure of a row or record; it is essentially just a list of field names and their data types.
Whenever you create a table, a composite type is also automatically created, with the same name as the table, to represent the table's row type.
Oracle:
CREATE TYPE typename AS OBJECT (...);
-- Nested Table Type | Object TypeMSSQL:
CREATE TYPE typename AS TABLE (...);
-- Table typeIn user-defined table types, structured user-defined types that are used in column_name are part of the database schema scope in which the table type is defined.
MariaDB:
COLUMN_CREATE(...)
-- Dynamic Columnshttps://mariadb.com/kb/en/dynamic-columns/
SQL Standart: 4.6.4.3 Structured types
A structured type is a named, user-defined data type. An attribute is a named component of a structured type.
Each attribute of a structured type has a data type and a default value.