Here are the examples of the python api sqlalchemy_utils.ScalarListType taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
3
Example 1
@pytest.fixture
def User(self, Base):
class User(Base):
__tablename__ = 'user'
id = sa.Column(sa.Integer, primary_key=True)
some_list = sa.Column(ScalarListType(int))
def __repr__(self):
return 'User(%r)' % self.id
return User
3
Example 2
@pytest.fixture
def User(self, Base):
class User(Base):
__tablename__ = 'user'
id = sa.Column(sa.Integer, primary_key=True)
some_list = sa.Column(ScalarListType(six.text_type))
def __repr__(self):
return 'User(%r)' % self.id
return User