Skip to content
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

Considerar criar chaves primary/foreign no SQL #27

Open
philsf opened this issue Sep 14, 2021 · 0 comments
Open

Considerar criar chaves primary/foreign no SQL #27

philsf opened this issue Sep 14, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@philsf
Copy link
Owner

philsf commented Sep 14, 2021

O SQLite só permite a criação de chaves primárias na criação da tabela.

Até onde identifiquei (SO), o pacote DBI não exibe uma função para realizar esta operação, portanto seria necessário injetar comandos SQL diretamente durante a criação das tabelas.

Seria possível criar um modelo de dados com

  • Cod_setor como primary key
  • Cod_setor como foreign key referenciando Básico
@philsf philsf added the enhancement New feature or request label Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant