Created
May 5, 2023 17:59
-
-
Save enebo/9a0151aa7e0a0bfd875097bbe8ff1d51 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
require 'jdbc/sqlite3' | |
Jdbc::SQLite3.load_driver | |
Java::org.sqlite.JDBC | |
url = "jdbc:sqlite:test.db" | |
con = java.sql.DriverManager.get_connection url | |
statement = con.create_statement | |
statement.execute("create table people (id int PRIMARY_KEY)") | |
p $: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment