Last active
March 4, 2021 08:33
-
-
Save robertlevonyan/00bb20e8b5ec34b60ca52bbe89be2f31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Date; | |
CREATE TABLE Movie( | |
id INTEGER PRIMARY KEY, | |
backdropPath TEXT, | |
posterPath TEXT, | |
title TEXT, | |
overview TEXT, | |
releaseDate TEXT as Date | |
); | |
selectAll: | |
SELECT * | |
FROM Movie; | |
insert: | |
INSERT OR IGNORE INTO Movie(id, backdropPath, posterPath, title, overview, releaseDate) | |
VALUES ?; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment