Skip to content

Pr 36 review#44

Merged
kishyassin merged 9 commits into
mainfrom
pr-36-review
Jan 30, 2026
Merged

Pr 36 review#44
kishyassin merged 9 commits into
mainfrom
pr-36-review

Conversation

@kishyassin

Copy link
Copy Markdown
Owner

No description provided.

jason-costello and others added 9 commits January 7, 2026 11:29
Implement database read operations with support for SQLite, PostgreSQL, and MySQL:

- Add FromSQL, FromSQLContext, FromSQLTx, FromSQLTxContext functions
- Support configurable NULL handling (nil, zero, skip_row, custom map)
- Add SQL dialect system for database-specific operations
- Include comprehensive test suite with 15 tests covering:
  * Basic read operations and type mapping
  * All NULL handling modes
  * Parameterized queries and transactions
  * Context support and error cases

All tests pass successfully.
Updated to add the parseDate logic to convert any type of date input from the database for columns is in the parseDates slice and return a time.Time type.   This allows for common time formats, unix time as int, unix time as int64, and fractional seconds/milliseconds.
… in order to streamline this PR and keep it focused on singular feature.
…s the return value only includes a query with the correcet placeholder. The known tablename will be used as the vars argument going into the query function for the specific db driver. Generated tests for sql_dialect.
@kishyassin kishyassin merged commit b016ecc into main Jan 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants