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

Change column value from String to Text #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from jsonpickle import encode, decode
from typing import Any
from sqlalchemy import (
Table, MetaData, Column, Integer, String,
Table, MetaData, Column, Integer, String, Text,
ForeignKey, create_engine, select)
from sqlalchemy.orm import mapper, sessionmaker
from sqlalchemy.orm.exc import NoResultFound
Expand Down Expand Up @@ -113,7 +113,7 @@ def open(self, namespace: str) -> StorageBase:
# Create a table with the given namespace
table = Table(namespace, self._metadata,
Column('key', String(767), primary_key=True),
Column('value', String(32768)),
Column('value', Text(32768)),
extend_existing=True)

class NewKV(KV):
Expand Down