<s> from sqlalchemy import * <EOL> from sqlalchemy . orm import * <EOL> from sqlalchemy . ext . declarative import declarative_base <EOL> from geoalchemy import GeometryColumn , LineString , GeometryDDL <EOL> engine = create_engine ( '<STR_LIT>' , echo = False ) <EOL> session = sessionmaker ( bind = engine ) ( ) <EOL> metadata = MetaData ( engine ) <EOL> Base = declarative_base ( metadata = metadata ) <EOL> class Road ( Base ) : <EOL> __tablename__ = '<STR_LIT>' <EOL> id = Column ( Integer , primary_key = True ) <EOL> name = Column ( Unicode , nullable = False ) <EOL> width = Column ( Integer ) <EOL> geom = GeometryColumn ( LineString ( <NUM_LIT:2> ) ) <EOL> GeometryDDL ( Road . __table__ ) </s>
