I wish to give different licenses to different parts of my code.
Also I need to put some copy rights on several SQL statements.
Is it possible?
How should I organize my code to make it happen?
views:
39answers:
1If you're the copyright holder then you can put pretty much whatever provision you want on the code - if people don't like the restrictions/licenses they don't have permission to use the copyrighted material.
That said, if you make things confusing then people will generally not want to use your code (it would have to be fantastic or quite unique to overcome the desire to avoid complexity). Even standard licenses, like the GPL, applied to entire codebases are often considered to complex to deal with and people will often decide to move on to other code just because of that (soemtimes even if they're OK in general with the license requirements).
And really - licensing a few lines of code at a time? Seems excessive. Those must be some pretty impressive SQL statements.
Even the FSF suggests just putting small bits of code into the public domain rather than licensing it under the GPL.