Skip to content

Instantly share code, notes, and snippets.

@enebo
Created May 5, 2023 17:59
Show Gist options
  • Save enebo/9a0151aa7e0a0bfd875097bbe8ff1d51 to your computer and use it in GitHub Desktop.
Save enebo/9a0151aa7e0a0bfd875097bbe8ff1d51 to your computer and use it in GitHub Desktop.
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