You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metamodel.apache.org by Arunkumar Pillai <ar...@gmail.com> on 2015/12/04 09:41:17 UTC
Help in Inserting current Timestamp
Hi
is there any way to insert the current date time using apache meta model.
like we give now() in mysql and postgresql
My code
def run(callback: UpdateCallback): Unit = {
val table: Table = schema.getTableByName("TABLE_NAME")
callback.insertInto(table).value("id",id).value("CurrentTimeStamp",?).execute();
}
}
)
Help would be appreciated
--
Thanks and Regards
Arun
Re: Help in Inserting current Timestamp
Posted by Arunkumar Pillai <ar...@gmail.com>.
Thanks for the quick respone
On Fri, Dec 4, 2015 at 2:16 PM, Du Krøger, Dennis <
Dennis.DuKroger@humaninference.com> wrote:
> Unless you need the server time, you can just provide it with "new Date()"
>
> -----Original Message-----
> From: Arunkumar Pillai [mailto:arunkumar1111@gmail.com]
> Sent: 4. december 2015 09:41
> To: dev@metamodel.apache.org
> Subject: Help in Inserting current Timestamp
>
> Hi
>
> is there any way to insert the current date time using apache meta model.
> like we give now() in mysql and postgresql
>
> My code
>
> def run(callback: UpdateCallback): Unit = {
> val table: Table = schema.getTableByName("TABLE_NAME")
>
>
>
> callback.insertInto(table).value("id",id).value("CurrentTimeStamp",?).execute();
> }
> }
> )
>
>
> Help would be appreciated
> --
> Thanks and Regards
> Arun
>
--
Thanks and Regards
Arun
RE: Help in Inserting current Timestamp
Posted by Du,
Dennis <De...@HumanInference.com>.
Unless you need the server time, you can just provide it with "new Date()"
-----Original Message-----
From: Arunkumar Pillai [mailto:arunkumar1111@gmail.com]
Sent: 4. december 2015 09:41
To: dev@metamodel.apache.org
Subject: Help in Inserting current Timestamp
Hi
is there any way to insert the current date time using apache meta model.
like we give now() in mysql and postgresql
My code
def run(callback: UpdateCallback): Unit = {
val table: Table = schema.getTableByName("TABLE_NAME")
callback.insertInto(table).value("id",id).value("CurrentTimeStamp",?).execute();
}
}
)
Help would be appreciated
--
Thanks and Regards
Arun