You are not logged in.
Pages: 1
Can we operate on schemas other than the public schema in a Postgres database?
Because Postgres databases often have multiple schemas, all operations in our mORMot2 are performed on the public schema by default.
Usually, as a server program, we have superuser privileges and expect to be able to operate on all schemas.
Offline
TSqlDBConnectionProperties.ForcedSchemaName https://github.com/synopse/mORMot2/blob … .pas#L1854
Offline
thanks, i will try it , still have a lot to learn in our mormot
Offline
AFAIR in OrmProps.ExternalTableName you can custopmize the table name and add a schema to it, can't you?
I checked the entire mormot2 codebase and didn't find any directly definable ExternalTableName attribute anywhere.
Except for the OrmMapExternal, which can set the aExternalTableName parameter,
ForcedSchemaName does work, but it affects the entire link.
If Torm could set up a mapping for ExternalTableName during definition or initialization, it would be more flexible to use.
The way I learned to use Mormot was by conducting a global search for potential keywords, which was quite challenging.
Offline
The way I learned to use Mormot was by conducting a global search for potential keywords, which was quite challenging.
I thought SAD 8.3[.6] (External database ORM internals) and api/mORMotDB.html might help clarifying.
Offline
Pages: 1