Skip to content

Support SQLite foreign key short hand syntax #101

@averichev

Description

@averichev

I use command sea-orm-cli generate entity -o entity/src/ --with-serde -t host_site

Adapter is SQLite

My host_site table DDL:

create table host_site
(
    host_id integer not null
        references host,
    site_id integer not null
        references site
);

create unique index host_site_host_id_site_id_uindex
    on host_site (host_id, site_id);

And I have error:
thread 'main' panicked at 'Ident is not allowed to be empty; use Option', /Users/averichev/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.36/src/fallback.rs:686:9
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Need help, please

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions