* fix(interpreter): remove statement (#168) * refactor(table): hitomi changes applied * refactor(domain): hitomi changes applied * refactor(table): hitomi changes applied * refactor(types): hitomi changes applied * chore(vscode): add snippets * refactor(orm): hitomi changes applied * feat(odm): migration to mongodb (#169) * feat(odm): migration to mongodb * feat(config): add config for atlas search * feat: apply changed * chore(deps): add dependency * test: apply changed * test(config): apply changed * chore(deps): bump up version motor * feat!(parser): remove parser * feat(interpreter): add get thumbnail method * feat!(info): using galleryinfo * feat(functions): add getthumbnail method * feat!(hitomi): remove get info method * fix(image): now return only webp or avif * refactor(info): apply hitomi changed * refactor(mirroring): apply hitomi changed * fix(types): thumbnail is file * test(common): edit dict * style: apply code style * feat(info): add from dict method * style(info): fix type issue * test(arg): fix test * style(info): apply isort * fix(domain): init false * test(common): edit info * test(conftest): edit image url * test(mirroring): fix test * fix(function): add base * test(conftest): edit image url fixture * test(conftest): fix conftest * test(conftest): fix conftest
19 lines
No EOL
507 B
Text
19 lines
No EOL
507 B
Text
{
|
|
"Make table": {
|
|
"scope": "python",
|
|
"prefix": "make table",
|
|
"body": [
|
|
"from sqlalchemy.sql.schema import Column, Table",
|
|
"",
|
|
"from heliotrope.database.orm.base import mapper_registry",
|
|
"from sqlalchemy.sql.sqltypes import Integer",
|
|
"",
|
|
"${1:${TM_FILENAME_BASE}}_table = Table(",
|
|
" \"${1:${TM_FILENAME_BASE}}\",",
|
|
" mapper_registry.metadata,",
|
|
" Column(\"id\", Integer, primary_key=True, autoincrement=True),",
|
|
")"
|
|
],
|
|
"description": "Make new endpoint"
|
|
}
|
|
} |