I'm playing around with the Play Framework 2.0 and what I'm doing is a simple web app that does following : Ask user to input a message which gets stored to a database and displayed on the screen (it's a test app) I'm using Ebean whith H2 (I followed the explanations on the official website to set this up) and at the start of the app I create a table (via 1.sql)
create table message (
id bigint not null,
created_on timestamp,
message varchar(255),
image_url varchar(255),
constraint pk_message primary key (id))
;
It pretty much does what I want it to do but now here's my issue : I have a Python script that grabs lots of "messages" from the internet and the objective is now to add those grabbed messages into the database. But I don't know how to do it, I don't know how to access the database from "outside" of the play framework. Is there a way of updating the database via Python ? If yes, any hint on how to do it ?