require 'sequel'
DB = Sequel.connect('sqlite://mydatabase.db')
# Define a model class for the custom table name
class CustomTable < Sequel::Model(:your_custom_table_name)
end
# Creating a table migration
DB.create_table :your_custom_table_name do
primary_key :id
String :name
Integer :age
end
# Inserting data into the custom table
CustomTable.create(name: 'John Doe', age: 25)
# Querying data from the custom table
result = CustomTable.where(age: 25).first
puts result[:name] if result
# Updating data in the custom table
CustomTable.where(age: 25).update(age: 26)
# Deleting data from the custom table
CustomTable.where(age: 26).delete