Skip to content

Support of Scanner and Valuer Interfaces in database/sql #80

Open
jwang1011/sonyflake
#1

Description

@junsazanami430u

If we could receive bigint as SonyflakeID types from the RDB, we could easily use them with ORM.
To receive SonyflakeID types from the RDB, we need to implement the sql.Scanner interface and the driver.Vuler interface.

Activity

  1. YoshiyukiMineo commented on Sep 15, 2025

    @YoshiyukiMineo
    Member

    One of the benefits of Sonyfake is that a Sonyflake ID is just a int64. So you can easily handle Sonyflake IDs as BIGINT in RDB.

  2. added a commit that references this issue on Feb 3, 2026
    4fff37e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions