Schemas
Schema settings
The Settings tab holds the technical conventions for one schema. These choices shape everything Kenseme generates from it: create and migration scripts, Pipeline load procedures, and AI naming suggestions.
In the app: Data Model › Schemas › your schema › Settings tab
Before you start¶
The dialect, naming and environment sections, and Delete Schema, need Read/Write access to the schema. Read Only users don’t see them.
Default dialect¶
Under Schema Settings, Default Database Dialect sets the SQL dialect for this schema’s views, scripts and other SQL objects.
- Pick a dialect from the drop-down.
- The change saves straight away. A message confirms
Default dialect updated to ….
Warning: Changing the dialect doesn’t rewrite SQL you’ve already written. It changes what Kenseme generates and which dialect new SQL starts in. To get a converted copy of a whole schema, clone it to another dialect instead.
See Supported database targets and Dialect-specific output notes.
Naming conventions¶
Schema Naming Settings tells Kenseme how names should look. It guides AI naming suggestions (Suggest Names) and the names Kenseme generates for new objects.
| Group | Setting | Example |
|---|---|---|
Table Settings |
Table Name Casing |
Pascal Case, Camel Case or Snake Case |
Table Prefix |
tbl_ |
|
Column Name Casing |
Same options as tables | |
Table Name Format |
Singular or Plural |
|
ID Column Suffix |
_id or Id |
|
Maximum Column Name Length |
A number, for targets with short identifier limits | |
View Settings |
View Casing, View Prefix |
vw_ |
Index Settings |
Index Casing, Index Prefix |
idx_ |
Stored Procedure Settings |
Stored Procedure Prefix |
sp_ or usp_ |
Click Save Settings when you’re done.
Tip: Settle conventions early. Renaming later is possible, but every rename after the fact is manual work.
Environments¶
Environments map this schema to a real database (or catalog) and schema name per environment, such as Dev, Test and Prod. When you generate scripts or procedures, you pick an environment and its names are substituted into qualified object names.
- In the
Environmentssection, clickAdd Environment. - Fill in:
Environment label(required), for exampleDev.Database / catalog (optional), for exampleOLTP_Prod.Schema override (optional): the schema name in that environment, if it differs. Leave it blank to use the schema’s own default.
- Click
Save.
Each row has Set Default to make it the default environment, plus edit and delete actions.
Note: Only names Kenseme qualifies are substituted. Names hard-coded inside view or procedure bodies are not rewritten.
Attribute groups¶
Attach attribute groups so objects in this schema can carry your custom metadata.
- In
Attribute Groups, clickAdd Group. - Pick an
Attribute Groupfrom your organization’s groups. - Tick the
Entity Typesit applies to (tables, columns, views and so on). - Click
Add.
The grid shows each group’s Group Name, number of Attributes and Entity Types. Use the edit icon to change the entity types, or the remove icon to detach the group. See Custom attributes overview.
Delete the schema¶
The Danger Zone at the bottom of the tab has Delete Schema.
- Click
Delete Schemaand confirm. - If Pipelines depend on the schema, Kenseme lists them and asks you to confirm the delete again.
Deleting removes the schema’s tables, columns, SQL objects and related data. The confirmation says they can be restored within 30 days.
Warning: Deleting a schema in Kenseme never touches your real databases. It only removes the design.