Macro diesel::infer_schema
[−]
[src]
macro_rules! infer_schema { ($database_url: expr) => { ... }; }
Queries the database for the names of all tables, and calls
infer_table_from_schema!
for each
one.
Attempting to use the env!
or dotenv!
macros here will not work due to limitations of
the Macros 1.1 system, but you can pass a string in the form "env:SOME_ENV_VAR"
or
"dotenv:SOME_ENV_VAR"
to achieve the same effect.
This macro can only be used in combination with the diesel_codegen
or
diesel_codegen_syntex
crates. It will not work on its own.