-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement CommandBehavior.SchemaOnly #1281
Comments
This was implemented in #723. Is there something wrong with the current implementation? |
Duplicate of #723 |
When I executed following command in SchemaOnly mode:
insert into blog (name, title, description, owner, createdAt, modifiedAt,
modifiedBy)
values ( @name, @title, @description, @owner, @createdat, @modifiedAt,
@modifiedBy);
select last_insert_id()
The insert part was executed and a new record was added.
That's why I thought it was not implemented at all.
Actually, the current implementation is enough for me.
wt., 31 sty 2023 o 15:33 Bradley Grainger ***@***.***>
napisał(a):
… Closed #1281 <#1281> as
not planned.
—
Reply to this email directly, view it on GitHub
<#1281 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA25GMOM54BDMWJTAZPLEOTWVEPE7ANCNFSM6AAAAAAULWEACY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I think |
Indeed. insert into blog (name, title, description, owner, createdAt, modifiedAt, modifiedBy) The same query is executed by NpgSql, OracleClient and MySql.Data and a new row is created. |
SchemaOnly command execution mode would be useful in some runtime code generation scenarios. It allows to discover query result structure without real execution.
I used this mode to implement microORM for F#. Thanks to SchemaOnly-based code generation data access code is almost as maintainable as it was statically typed, even if queries are simple strings.
The text was updated successfully, but these errors were encountered: